Commit 9b0d965f authored by caiyanming's avatar caiyanming

refractor python docker

Change-Id: I4e31e5a1c08fb0c1a226a55e3fc50423dd07dac8
parent 178506f2
...@@ -17,9 +17,8 @@ ...@@ -17,9 +17,8 @@
FROM python:3 FROM python:3
MAINTAINER xt MAINTAINER xt
WORKDIR /var/app ENV PYTHONUNBUFFERED 1
ENV TZ Asia/Shanghai
ENV PATH /opt/conda/bin:$PATH
COPY sources.list /etc/apt/sources.list COPY sources.list /etc/apt/sources.list
COPY requirements.txt ./ COPY requirements.txt ./
...@@ -31,6 +30,4 @@ RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 \ ...@@ -31,6 +30,4 @@ RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 \
&& pip install --no-cache-dir --trusted-host mirrors.aliyun.com \ && pip install --no-cache-dir --trusted-host mirrors.aliyun.com \
-i http://mirrors.aliyun.com/pypi/simple -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple -r requirements.txt
ENV TZ Asia/Shanghai CMD [ "/bin/bash" ]
CMD [ "python", "/usr/local/app/startup.py" ]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment