diff --git a/Dockerfile b/Dockerfile index 0b1a3e4..147e795 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,15 +5,15 @@ LABEL Description="Forked from https://github.com/TrafeX/docker-php-nginx, Light # Setup document root WORKDIR /var/www/html -# Install packages and remove default server definition +# Install packages RUN apk update \ && apk add --no-cache \ curl \ nginx \ php82 \ php82-fpm \ - supervisor - + supervisor \ + php --version # Configure nginx COPY config/nginx.conf /etc/nginx/nginx.conf @@ -38,6 +38,3 @@ EXPOSE 80 # Let supervisord start nginx & php-fpm CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] - -# Configure a healthcheck to validate that everything is up & running -HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:80/fpm-ping \ No newline at end of file