updated Dockerfiles to add pip mirrors

pull/61/MERGE
13621160019@163.com 2021-08-11 18:27:42 +08:00
parent f97d7d2ff1
commit 04bc0b2fdf
5 changed files with 5 additions and 5 deletions

View File

@ -2,5 +2,5 @@ FROM python:3.9.6
WORKDIR /code WORKDIR /code
COPY . /code COPY . /code
RUN pip install -r requirements.txt RUN pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/
CMD ['python', 'main.py'] CMD ['python', 'main.py']

View File

@ -2,6 +2,6 @@ FROM python:3.9.6
WORKDIR /code WORKDIR /code
COPY . /code COPY . /code
RUN pip install -r requirements.txt RUN pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/
EXPOSE 8000 EXPOSE 8000
CMD ['gunicorn', 'app:api', '-b 0.0.0.0:8000'] CMD ['gunicorn', 'app:api', '-b 0.0.0.0:8000']

View File

@ -2,5 +2,5 @@ FROM python:3.9.6
WORKDIR /code WORKDIR /code
COPY . /code COPY . /code
RUN pip install -r requirements.txt RUN pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/
CMD ['python', 'main.py'] CMD ['python', 'main.py']

View File

@ -2,5 +2,5 @@ FROM python:3.9.6
WORKDIR /code WORKDIR /code
COPY . /code COPY . /code
RUN pip install -r requirements.txt RUN pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/
CMD ['python', 'main.py'] CMD ['python', 'main.py']

View File

@ -2,5 +2,5 @@ FROM python:3.9.6
WORKDIR /code WORKDIR /code
COPY . /code COPY . /code
RUN pip install -r requirements.txt RUN pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/
CMD ['python', 'main.py'] CMD ['python', 'main.py']