Commit 9b0d965f authored by caiyanming's avatar caiyanming

refractor python docker

Change-Id: I4e31e5a1c08fb0c1a226a55e3fc50423dd07dac8
parent 178506f2
......@@ -17,9 +17,8 @@
FROM python:3
MAINTAINER xt
WORKDIR /var/app
ENV PATH /opt/conda/bin:$PATH
ENV PYTHONUNBUFFERED 1
ENV TZ Asia/Shanghai
COPY sources.list /etc/apt/sources.list
COPY requirements.txt ./
......@@ -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 \
-i http://mirrors.aliyun.com/pypi/simple -r requirements.txt
ENV TZ Asia/Shanghai
CMD [ "python", "/usr/local/app/startup.py" ]
CMD [ "/bin/bash" ]
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