From e85c7bfa6f5c46a6fefc91bf12a62f5adbe90afe Mon Sep 17 00:00:00 2001 From: Thijs van Loef Date: Sun, 21 Jan 2024 11:57:48 +0100 Subject: [PATCH] add healthcheck --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index e7b707b2c..89b578f20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ LABEL maintainer="thijs@loef.dev" RUN apt-get update && apt-get install -y --no-install-recommends \ xdg-user-dirs=0.17-2 \ + procps=2:3.3.17-5 \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* @@ -24,5 +25,7 @@ RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh WORKDIR /home/steam/server +HEALTHCHECK CMD pgrep "PalServer-Linux" > /dev/null || exit 1 + EXPOSE ${PORT} ENTRYPOINT ["/home/steam/server/init.sh"]