update Dockerfile

pull/266/merge
cppla 2025-08-13 19:46:57 +08:00
parent fd6c3532d9
commit d25e7871ba
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# The Dockerfile for build localhost source, not git repo
FROM debian AS builder
FROM debian:bookworm AS builder
LABEL maintainer="cppla <https://cpp.la>"
@ -26,4 +26,4 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
EXPOSE 80 35601
HEALTHCHECK --interval=5s --timeout=3s --retries=3 CMD curl --fail http://localhost:80 || bash -c 'kill -s 15 -1 && (sleep 10; kill -s 9 -1)'
CMD ["sh", "-c", "/etc/init.d/nginx start && /ServerStatus/server/sergate --config=/ServerStatus/server/config.json --web-dir=/usr/share/nginx/html"]
CMD ["sh", "-c", "/etc/init.d/nginx start && /ServerStatus/server/sergate --config=/ServerStatus/server/config.json --web-dir=/usr/share/nginx/html"]