mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
10 lines
576 B
Docker
10 lines
576 B
Docker
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:20-bookworm
|
|
ADD https://github.com/criyle/go-judge/releases/download/v1.8.0/go-judge_1.8.0_linux_amd64 /usr/bin/sandbox
|
|
RUN npm install -g yarn && \
|
|
sudo apt-get update && sudo apt-get install gcc g++ && \
|
|
mkdir -p /root/.hydro /data/file && chmod +x /usr/bin/sandbox && \
|
|
chown -R root:root /root /root/.hydro /data/file && \
|
|
echo '{"uri":"mongodb://mongo/hydro"}' > /root/.hydro/config.json && \
|
|
echo '["@hydrooj/ui-default","@hydrooj/hydrojudge"]' > /root/.hydro/addon.json
|
|
ENTRYPOINT sandbox
|