install: update Dockerfile and compose file (#999)

This commit is contained in:
Heran Yang authored and GitHub committed 2025-06-30 10:13:37 +01:00
1 parent 8ed74053d5
commit a49ff686e1
8 files changed
+104 -52

No files matched your search

+12 -11
View File
@@ -1,28 +1,29 @@
FROM node:20
COPY ./entrypoint.sh /root/entrypoint.sh
RUN apt-get -qq update && \
apt-get install -y \
gcc \
python3 \
g++ \
fp-compiler \
openjdk-8-jdk-headless \
python \
php7.0-cli \
openjdk-17-jdk-headless \
php-cli \
rustc \
haskell-platform \
ghc \
libjavascriptcoregtk-4.0-bin \
golang \
ruby \
mono-runtime \
mono-mcs
ADD ./entrypoint.sh /root/entrypoint.sh
ADD ./judge.yaml /root/judge.yaml
RUN chmod +x /root/entrypoint.sh
mono-mcs && \
chmod +x /root/entrypoint.sh && \
# node is at /usr/local/bin but hydrojudge will find it at /usr/bin
# so make a symlink to it
ln -s /usr/local/bin/node /usr/bin/node
RUN yarn global add pm2 @hydrooj/hydrojudge && \
wget https://github.com/criyle/go-judge/releases/download/v1.8.0/go-judge_1.8.0_linux_amd64 -O /usr/bin/sandbox && \
wget https://github.com/criyle/go-judge/releases/download/v1.9.4/go-judge_1.9.4_linux_amd64v3 -O /usr/bin/sandbox && \
chmod +x /usr/bin/sandbox
ENTRYPOINT /root/entrypoint.sh
ENTRYPOINT ["/root/entrypoint.sh"]