Skip to content

Commit

Permalink
Merge pull request thijsvanloef#21 from thijsvanloef/add-healthcheck
Browse files Browse the repository at this point in the history
add healthcheck
  • Loading branch information
thijsvanloef authored Jan 21, 2024
2 parents 43984ee + 9766e23 commit b835ef7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ LABEL maintainer="[email protected]"

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/*

Expand All @@ -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"]

0 comments on commit b835ef7

Please sign in to comment.