add dockerfile

This commit is contained in:
wangjiacai 2023-04-02 16:12:25 +08:00
parent e81b44b58c
commit a98730eebc

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM alpine
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
RUN apk add git python3 py3-pip
COPY . /web-gpt
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip3 install -r /web-gpt/requirements.txt
CMD cd /web-gpt && flask --app=project run --host=0.0.0.0