Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Apr 12, 2021
1 parent 2a809e2 commit af82bc4
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions trunk/core/judge_client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,13 @@ RUN sed -i 's/archive.ubuntu/mirrors.aliyun/g' /etc/apt/sources.list &&\
openjdk-11-jdk\
subversion \
wget

RUN useradd -m -u 1536 judge
RUN cd /home/judge/ && \
wget dl.hustoj.com/hustoj.tar.gz && \
tar xzf hustoj.tar.gz && \
svn up src &&\
cd src/core/judge_client && \
make && \
cp judge_client /usr/bin/ && \
cd ../sim/sim_3_01 && \
make fresh && \
make exes && \
chmod +x sim* && \
cp sim_c.exe /usr/bin/sim_c && \
cp sim_c++.exe /usr/bin/sim_cc && \
cp sim_java.exe /usr/bin/sim_java && \
cp sim_pasc.exe /usr/bin/sim_pas && \
cp sim_text.exe /usr/bin/sim_text && \
cp sim_lisp.exe /usr/bin/sim_scm && \
cd .. && \
cp sim.sh /usr/bin && \
chmod +x /usr/bin/sim.sh
tar xzf hustoj.tar.gz
RUN svn up /home/judge/src
RUN cd /home/judge/src/core/ && \
bash make.sh



0 comments on commit af82bc4

Please sign in to comment.