Skip to content

Commit

Permalink
Add healthcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Graf <[email protected]>
  • Loading branch information
ItsPhenom committed Jul 16, 2024
1 parent a5d9843 commit fcfb2f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ RUN true \
&& adduser -u 9999 -Hh /xaseco -G xaseco -s /sbin/nologin -D xaseco \
&& install -d -o xaseco -g xaseco -m 775 /xaseco \
&& chown xaseco:xaseco -Rf /xaseco \
&& apk add --force-overwrite --no-cache bash \
&& apk add --force-overwrite --no-cache bash procps \
&& true

USER xaseco
Expand All @@ -121,5 +121,8 @@ COPY xaseco/xaseco.tar.gz /tmp

COPY --chmod=0755 xaseco/entrypoint.sh /usr/local/bin/

HEALTHCHECK --interval=5s --timeout=5s --start-period=20s --retries=3 \
CMD [ "/bin/sh", "-c", "pgrep -x php || exit 1" ]

ENTRYPOINT ["entrypoint.sh"]
CMD [ "/usr/local/bin/php", "/xaseco/aseco.php" ]

0 comments on commit fcfb2f7

Please sign in to comment.