added trusted-host to Dockerfiles

pull/67/head
13621160019@163.com 2021-09-01 15:35:13 +08:00 committed by Caozhenhui
parent b86573020b
commit fc379e4e3b
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 -i http://mirrors.aliyun.com/pypi/simple/ RUN pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
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 -i http://mirrors.aliyun.com/pypi/simple/ RUN pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
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 -i http://mirrors.aliyun.com/pypi/simple/ RUN pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
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 -i http://mirrors.aliyun.com/pypi/simple/ RUN pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
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 -i http://mirrors.aliyun.com/pypi/simple/ RUN pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
CMD ['python', 'main.py'] CMD ['python', 'main.py']