added trusted-host to Dockerfiles
parent
b86573020b
commit
fc379e4e3b
|
@ -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']
|
|
@ -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']
|
|
@ -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']
|
|
@ -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']
|
|
@ -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']
|
Loading…
Reference in New Issue