OnlineJudge/Dockerfile

12 lines
245 B
Docker
Raw Normal View History

2015-08-02 11:55:44 +08:00
FROM python:2.7
2015-08-02 10:49:31 +08:00
ENV PYTHONUNBUFFERED 1
2015-08-02 10:52:36 +08:00
ENV oj_env daocloud
2015-08-02 10:49:31 +08:00
RUN mkdir /var/oj
COPY . /var/oj/
WORKDIR /var/oj/
RUN pip install -r requirements.txt
2015-08-02 10:54:18 +08:00
EXPOSE 8080
2015-08-02 10:59:01 +08:00
RUN mkdir LOG
2015-08-02 14:07:57 +08:00
RUN python manage.py migrate
2015-08-02 12:22:13 +08:00
CMD python manage.py runserver 0.0.0.0:8080