From a98730eebcd689bd783c5b4b6a26aba0cb7de380 Mon Sep 17 00:00:00 2001 From: wangjiacai Date: Sun, 2 Apr 2023 16:12:25 +0800 Subject: [PATCH] add dockerfile --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..283c642 --- /dev/null +++ b/Dockerfile @@ -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 \ No newline at end of file