From 3b1abe06be97c231cdfcd0b899febb998462e8d8 Mon Sep 17 00:00:00 2001 From: wangjiacai Date: Sun, 2 Apr 2023 16:28:32 +0800 Subject: [PATCH] set mirror before upgrade pip --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a8c958e..a5135b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,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 -RUN python3 -m pip install --upgrade pip && pip3 install --upgrade setuptools RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple +RUN python3 -m pip install --upgrade pip && pip3 install --upgrade setuptools COPY . /web-gpt 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