OnlineJudge/dockerfiles/oj_web_server/Dockerfile

15 lines
506 B
Docker
Raw Normal View History

2015-08-02 03:55:44 +00:00
FROM python:2.7
2015-08-26 06:25:14 +00:00
ENV PYTHONBUFFERED 1
RUN mkdir -p /code/log /code/test_case /code/upload
2015-08-26 06:25:14 +00:00
WORKDIR /code
ADD requirements.txt /code/
RUN pip install -i http://pypi.douban.com/simple -r requirements.txt --trusted-host pypi.douban.com
2016-01-08 15:32:30 +00:00
RUN rm /etc/apt/sources.list
ADD sources.list /etc/apt/
RUN curl -sL https://deb.nodesource.com/setup | bash -
RUN apt-get -y install nodejs
ADD gunicorn.conf /etc
ADD supervisord.conf /etc
ADD task_queue.conf /etc
2016-02-20 04:10:11 +00:00
EXPOSE 8080
2016-01-08 15:32:30 +00:00
CMD bash /code/dockerfiles/oj_web_server/run.sh