测试 docker 运行

This commit is contained in:
virusdefender
2015-08-02 10:49:31 +08:00
parent adaacb6086
commit 61153fda06
4 changed files with 32 additions and 3 deletions

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM python:2.7
ENV PYTHONUNBUFFERED 1
EVN oj_env daocloud
RUN mkdir /var/oj
COPY . /var/oj/
WORKDIR /var/oj/
RUN pip install -r requirements.txt
EXPOSE: 8080
RUN python manage,py runserver 8080