OnlineJudge/Dockerfile

11 lines
216 B
Docker
Raw Normal View History

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