OnlineJudge/Dockerfile
2015-08-02 11:47:32 +08:00

15 lines
364 B
Docker

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
COPY . /var/oj/
WORKDIR /var/oj/
RUN pip install -r requirements.txt
EXPOSE 8080
RUN mkdir LOG
CMD python manage.py runserver 8080