diff --git a/Dockerfile b/Dockerfile index c43f60b..810b3aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ ARG ARCH= FROM ${ARCH}alpine:3.20 -LABEL Maintainer="Ernesto Serrano " \ +LABEL Maintainer="Andreas Holzmann " \ Description="Lightweight container with Nginx & PHP-FPM based on Alpine Linux." # Install packages @@ -33,8 +33,13 @@ RUN apk --no-cache add \ php83-tokenizer \ php83-xml \ php83-xmlreader \ + php83-xmlwriter \ php83-zip \ php83-zlib \ + php83-xsl \ + php83-pcntl \ + php83-posix \ + php83-sockets \ nginx \ runit \ curl \ @@ -78,11 +83,10 @@ EXPOSE 8080 # Ensure /bin/docker-entrypoint.sh is always executed ENTRYPOINT ["/bin/docker-entrypoint.sh"] - # Configure a healthcheck to validate that everything is up&running HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping || exit 1 -ENV nginx_root_directory=/var/www/html \ +ENV nginx_root_directory=/var/www/html/public \ client_max_body_size=2M \ clear_env=no \ allow_url_fopen=On \ @@ -96,4 +100,5 @@ ENV nginx_root_directory=/var/www/html \ post_max_size=8M \ upload_max_filesize=2M \ zlib_output_compression=On \ - date_timezone=UTC + date_timezone=Europe/Berlin \ + intl_default_locale=de_DE diff --git a/README.md b/README.md index 0c1ad65..c2afd69 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,7 @@ You can define the next environment variables to change values from NGINX and PH | PHP8 | upload_max_filesize | 2M | Maximum size of an uploaded file. | | PHP8 | zlib_output_compression | On | Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration, pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header. | | PHP8 | date_timezone | UTC | Sets the PHP timezone configuration (date.timezone) in custom.ini. Accepts standard PHP timezone identifiers (e.g., 'America/New_York', 'Europe/London'). See [PHP timezones](https://www.php.net/manual/en/timezones.php) for valid values. | +| PHP8 | intl_default_locale | en_US | If you want to change the [PHP locale](https://www.php.net/manual/en/class.locale.php) for the entire application or server globally (e.g. in php.ini), you can set the intl.default_locale directives (e.g. en_US or de_DE) | _Note; Because `-v` requires an absolute path I've added `pwd` in the example to return the absolute path to the current directory_ diff --git a/rootfs/etc/php83/conf.d/custom.ini b/rootfs/etc/php83/conf.d/custom.ini index 5351b16..c50bb16 100644 --- a/rootfs/etc/php83/conf.d/custom.ini +++ b/rootfs/etc/php83/conf.d/custom.ini @@ -13,3 +13,4 @@ post_max_size= $post_max_size upload_max_filesize= $upload_max_filesize zlib.output_compression= $zlib_output_compression date.timezone= "$date_timezone" +intl.default_locale= "$intl_default_locale" \ No newline at end of file