w: add docker installation (#152)

This commit is contained in:
zhoupb12313 authored and GitHub committed 2021-06-04 21:31:00 +08:00
1 parent 715e564971
commit 7b75a961bc
7 files changed
+174

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
FROM node:14
ADD ./entrypoint.sh /root/entrypoint.sh
ADD ./judge.yaml /root/judge.yaml
RUN yarn global add pm2 @hydrooj/hydrojudge && \
wget https://s3.undefined.moe/file/executor-amd64 -O /usr/bin/sandbox && \
chmod +x /usr/bin/sandbox
RUN apt-get -qq update && \
apt-get install -y \
gcc \
python3 \
g++ \
fp-compiler \
openjdk-8-jdk-headless \
python \
php7.0-cli \
rustc \
haskell-platform \
libjavascriptcoregtk-4.0-bin \
golang \
ruby \
mono-runtime \
mono-mcs
RUN chmod +x /root/entrypoint.sh
ENTRYPOINT /root/entrypoint.sh