mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 11:38:42 +00:00
21 lines
454 B
Docker
21 lines
454 B
Docker
FROM ubuntu:18.04
|
|
|
|
ARG CLONE_ADDFLAG
|
|
|
|
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
|