From 477fc68ae28a4d9540e7200a048ed2547eda8d82 Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Sun, 2 Aug 2015 11:55:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E5=9B=9E=20python=20=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95e386e..07840be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,4 @@ -FROM ubuntu -RUN apt-get update -RUN apt-get -y install software-properties-common python-software-properties -RUN apt-get -y install python -RUN apt-get -y install python-pip +FROM python:2.7 ENV PYTHONUNBUFFERED 1 ENV oj_env daocloud RUN mkdir /var/oj @@ -11,4 +7,4 @@ WORKDIR /var/oj/ RUN pip install -r requirements.txt EXPOSE 8080 RUN mkdir LOG -CMD python manage.py runserver 8080 +CMD bash -c "python manage.py runserver 8080"