File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11FROM ubuntu:latest
2+
23# LABEL Maintainer="Tim de Pater <code@trafex.nl>"
3- LABEL Description="Lightweight container with Nginx 1.22 & PHP 8.1 based on Alpine Linux."
4+ LABEL Description="Lightweight container with Nginx 1.22 & PHP 8.1 based on Ubuntu Linux."
5+
46# Setup document root
57WORKDIR /var/www/html
68
@@ -24,7 +26,6 @@ RUN apt-get update && apt-get install -y \
2426 php-xmlreader \
2527 supervisor
2628
27-
2829# Both php-session and php-openssl do not currently have Ubuntu counterparts
2930
3031# Configure nginx - http
@@ -39,7 +40,7 @@ COPY config/php.ini /etc/php/conf.d/custom.ini
3940# Configure supervisord
4041COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
4142
42- # Add application --chown=nobody
43+ # Add application
4344COPY src/ /var/www/html/
4445
4546# Expose the port nginx is reachable on
@@ -49,4 +50,4 @@ EXPOSE 8080
4950CMD ["/usr/bin/supervisord" , "-c" , "/etc/supervisor/conf.d/supervisord.conf" ]
5051
5152# Configure a healthcheck to validate that everything is up&running
52- # HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping
53+ HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ listen = /run/php/php8.1-fpm.sock
1919; permissions must be set in order to allow connections from a web server.
2020; Default Values: user and group are set as the running user
2121; mode is set to 0660
22- listen.owner = www-data
23- listen.group = www-data
22+ listen.owner = nginx
23+ listen.group = nginx
2424listen.mode = 0660
2525
2626; Enable status page
You can’t perform that action at this time.
0 commit comments