From a039ff333d1e19da8abfc8eb69b2b6af7866477a Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Sun, 2 Aug 2015 11:47:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=20docker=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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index def8e99..95e386e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,8 @@ -FROM python:2.7 +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 ENV PYTHONUNBUFFERED 1 ENV oj_env daocloud RUN mkdir /var/oj @@ -7,3 +11,4 @@ WORKDIR /var/oj/ RUN pip install -r requirements.txt EXPOSE 8080 RUN mkdir LOG +CMD python manage.py runserver 8080