devcontainer: bump node version to 22 and update feature installation (#1017)

This commit is contained in:
Yang Gao authored and GitHub committed 2025-07-18 02:41:45 +01:00
1 parent 43114ccf86
commit a3226f724f
3 files changed
+21 -13

No files matched your search

+3 -7
View File
@@ -1,9 +1,5 @@
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 && \
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:22-bookworm
RUN install -d -o root -g 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