mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-28 16:12:13 +00:00
12 lines
245 B
Docker
12 lines
245 B
Docker
FROM python:2.7
|
|
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
|
|
RUN python manage.py migrate
|
|
CMD python manage.py runserver 0.0.0.0:8080
|