Added healthcheck

This commit is contained in:
2023-07-14 23:11:08 +02:00
parent c7231d648c
commit b11c4b4e9f
3 changed files with 23 additions and 3 deletions
+4 -1
View File
@@ -41,10 +41,13 @@ COPY etc/php /usr/local/etc/php/conf.d
# Install dependencies
RUN apk update && \
apk upgrade && \
apk add git && \
apk add git fcgi && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
rm -rf /var/cache/apk/*
# Enable php fpm status page
RUN set -xe && echo "pm.status_path = /status" >> /usr/local/etc/php-fpm.d/zz-docker.conf
# Install and execute own entrypoint script. This scrpit should hold all instructions that are not
# executed while the image is build (use RUN in this file therefore) but that are run when the
# container starts up. One major advanatge is that mounted volumes are already available when this