OnlineJudge/Dockerfile

15 lines
364 B
Docker
Raw Normal View History

2015-08-02 03:47:32 +00:00
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
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 03:47:32 +00:00
CMD python manage.py runserver 8080