2017-04-29 10:30:02 +00:00
|
|
|
FROM ubuntu:16.04
|
2016-09-28 11:55:39 +00:00
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update
|
2017-04-29 10:30:02 +00:00
|
|
|
RUN apt-get -y install software-properties-common python-software-properties python python-dev gcc g++ git libtool python-pip libseccomp-dev cmake
|
|
|
|
RUN add-apt-repository ppa:openjdk-r/ppa
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y openjdk-7-jdk
|
2016-09-28 11:55:39 +00:00
|
|
|
RUN cd /tmp && git clone https://github.com/QingdaoU/Judger && cd Judger && git checkout newnew && mkdir build && cd build && cmake .. && make && make install && cd ../bindings/Python && python setup.py install
|
|
|
|
RUN mkdir -p /judger_run /test_case /log /code
|
2016-10-27 10:38:04 +00:00
|
|
|
COPY java_policy /etc
|
2017-04-29 10:30:02 +00:00
|
|
|
RUN pip install futures psutil gunicorn web.py requests
|
2016-10-15 19:38:45 +00:00
|
|
|
RUN useradd -r compiler
|
2016-10-03 08:13:46 +00:00
|
|
|
HEALTHCHECK --interval=5s --retries=3 CMD python /code/service.py
|
2016-10-03 09:30:58 +00:00
|
|
|
WORKDIR /code
|
|
|
|
EXPOSE 8080
|
2017-04-29 10:30:02 +00:00
|
|
|
CMD /bin/bash /code/run.sh
|