update pip to avoid docker build error.
This commit is contained in:
parent
a98730eebc
commit
331bad40f7
@ -2,7 +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
|
||||
COPY . /web-gpt
|
||||
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
|
||||
COPY . /web-gpt
|
||||
RUN pip3 install -r /web-gpt/requirements.txt
|
||||
CMD cd /web-gpt && flask --app=project run --host=0.0.0.0
|
Reference in New Issue
Block a user