mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
docker: upgrade node and sandbox version (#723)
This commit is contained in:
1 parent
a0f3ee0328
commit
d99e11e3e2
3 files changed
+5
-5
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:18-bullseye
|
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:20-bookworm
|
||||||
ADD https://github.com/criyle/go-judge/releases/download/v1.6.3/executorserver_1.6.3_linux_amd64 /usr/bin/sandbox
|
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 && \
|
RUN npm install -g yarn && \
|
||||||
sudo apt-get update && sudo apt-get install gcc g++ && \
|
sudo apt-get update && sudo apt-get install gcc g++ && \
|
||||||
mkdir -p /root/.hydro /data/file && chmod +x /usr/bin/sandbox && \
|
mkdir -p /root/.hydro /data/file && chmod +x /usr/bin/sandbox && \
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:14
|
FROM node:20
|
||||||
ADD ./entrypoint.sh /root/entrypoint.sh
|
ADD ./entrypoint.sh /root/entrypoint.sh
|
||||||
RUN yarn global add pm2 hydrooj @hydrooj/ui-default
|
RUN yarn global add pm2 hydrooj @hydrooj/ui-default
|
||||||
RUN chmod +x /root/entrypoint.sh && \
|
RUN chmod +x /root/entrypoint.sh && \
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:14
|
FROM node:20
|
||||||
|
|
||||||
RUN apt-get -qq update && \
|
RUN apt-get -qq update && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
@@ -22,7 +22,7 @@ ADD ./judge.yaml /root/judge.yaml
|
|||||||
RUN chmod +x /root/entrypoint.sh
|
RUN chmod +x /root/entrypoint.sh
|
||||||
|
|
||||||
RUN yarn global add pm2 @hydrooj/hydrojudge && \
|
RUN yarn global add pm2 @hydrooj/hydrojudge && \
|
||||||
wget https://github.com/criyle/go-judge/releases/download/v1.6.0/executorserver_1.6.0_linux_amd64 -O /usr/bin/sandbox && \
|
wget https://github.com/criyle/go-judge/releases/download/v1.8.0/go-judge_1.8.0_linux_amd64 -O /usr/bin/sandbox && \
|
||||||
chmod +x /usr/bin/sandbox
|
chmod +x /usr/bin/sandbox
|
||||||
|
|
||||||
ENTRYPOINT /root/entrypoint.sh
|
ENTRYPOINT /root/entrypoint.sh
|
||||||
Reference in new issue
Block a user