mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
install: update Dockerfile and compose file (#999)
This commit is contained in:
1 parent
8ed74053d5
commit
a49ff686e1
8 files changed
+104
-52
No files matched your search
@@ -1,6 +1,8 @@
|
||||
FROM node:20
|
||||
ADD ./entrypoint.sh /root/entrypoint.sh
|
||||
RUN yarn global add pm2 hydrooj @hydrooj/ui-default
|
||||
RUN chmod +x /root/entrypoint.sh && \
|
||||
mkdir -p /root/.hydro
|
||||
ENTRYPOINT /root/entrypoint.sh
|
||||
|
||||
COPY ./entrypoint.sh /root/entrypoint.sh
|
||||
|
||||
RUN yarn global add pm2 hydrooj @hydrooj/ui-default && \
|
||||
chmod +x /root/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/root/entrypoint.sh"]
|
||||
@@ -13,8 +13,9 @@ fi
|
||||
if [ ! -f "$ROOT/first" ]; then
|
||||
echo "for marking use only!" > "$ROOT/first"
|
||||
|
||||
hydrooj cli user create systemjudge@systemjudge.local root rootroot
|
||||
hydrooj cli user setSuperAdmin 2
|
||||
hydrooj cli user create systemjudge@systemjudge.local judge examplepassword 2
|
||||
hydrooj cli user setJudge 2
|
||||
hydrooj cli system set server.host 0.0.0.0
|
||||
fi
|
||||
|
||||
pm2-runtime start hydrooj
|
||||
Reference in new issue
Block a user