mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-26 12:28:42 +00:00
c5ef73dc76
The installation files are dirty when they are outside of the folder. It now looks not so mess. And there is no need to place empty jdk files. 果断删除之。
31 lines
559 B
Docker
31 lines
559 B
Docker
FROM ubuntu:14.04
|
|
MAINTAINER vfleaking vfleaking@163.com
|
|
|
|
COPY docker/sources.list /etc/apt/sources.list
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y vim \
|
|
ntp \
|
|
build-essential \
|
|
python \
|
|
python-requests \
|
|
subversion \
|
|
unzip
|
|
|
|
COPY docker/jdk-7u76-linux-x64.tar.gz \
|
|
docker/jdk-8u31-linux-x64.tar.gz \
|
|
docker/judge_client/conf.json \
|
|
/root/
|
|
COPY docker/judge_client/cur_install /root/install
|
|
|
|
RUN cd /root && chmod +x install
|
|
RUN cd /root && ./install && rm * -rf
|
|
|
|
COPY docker/judge_client/up /root/up
|
|
|
|
RUN chmod +x /root/up
|
|
|
|
EXPOSE 2333
|
|
|
|
CMD /root/up
|