Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit f916d4d

Browse files
authored
Add health check (#24)
1 parent a774d71 commit f916d4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ RUN \
2828
php7.3-xml \
2929
php7.3-zip \
3030
php7.3-fpm \
31+
curl \
3132
git \
3233
composer && \
3334
cd /var/www/html && \
@@ -54,6 +55,8 @@ RUN chmod +x /entrypoint.sh && \
5455
chmod +x /inject.sh && \
5556
mkdir /run/php
5657

58+
HEALTHCHECK CMD curl --fail http://localhost:80/ || exit 1
59+
5760
ENTRYPOINT [ "/entrypoint.sh" ]
5861

5962
CMD [ "nginx" ]

0 commit comments

Comments
 (0)