Skip to content

Commit

Permalink
add healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsvanloef committed Jan 21, 2024
1 parent fe1cd0a commit e85c7bf
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 e85c7bf

Please sign in to comment.