From 9b0d965f69acde32101cfa2f56ce58c1de310287 Mon Sep 17 00:00:00 2001 From: ruowen Date: Sat, 12 May 2018 13:27:42 +0800 Subject: [PATCH] refractor python docker Change-Id: I4e31e5a1c08fb0c1a226a55e3fc50423dd07dac8 --- python/Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/python/Dockerfile b/python/Dockerfile index 2feec81..75700ec 100644 --- a/python/Dockerfile +++ b/python/Dockerfile @@ -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" ] -- GitLab