mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-22 23:51:52 +00:00
Baoshuo
bcf5ce8b06
All checks were successful
continuous-integration/drone/push Build is passing
ref: https://github-redirect.dependabot.com/UniversalOJ/UOJ-System/pull/113 Co-authored-by: vfleaking <vfleaking@163.com> Co-authored-by: Yefori-Go <110314400+Yefori-Go@users.noreply.github.com>
24 lines
684 B
Docker
24 lines
684 B
Docker
FROM ubuntu:22.04
|
|
|
|
ARG CLONE_ADDFLAG
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && apt-get install -y vim ntp zip unzip curl wget build-essential fp-compiler python2.7 python3.10 python3-requests libseccomp-dev openjdk-8-jdk openjdk-11-jdk openjdk-17-jdk
|
|
|
|
ADD . /opt/uoj_judger
|
|
WORKDIR /opt/uoj_judger
|
|
|
|
# Install environment and set startup script
|
|
RUN sh install.sh -p && echo "\
|
|
#!/bin/sh\n\
|
|
if [ ! -f \"/opt/uoj_judger/.conf.json\" ]; then\n\
|
|
cd /opt/uoj_judger && sh install.sh -i\n\
|
|
fi\n\
|
|
service ntp start\n\
|
|
su judger -c \"/opt/uoj_judger/judge_client start\"\n\
|
|
exec bash\n" >/opt/up && chmod +x /opt/up
|
|
|
|
ENV LANG=C.UTF-8 TZ=Asia/Shanghai
|
|
EXPOSE 2333
|
|
CMD /opt/up
|