Skip to content

Commit

Permalink
Add php.ini to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Phocacius committed Aug 26, 2024
1 parent 9c51895 commit 09e9898
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## next bugfix release (4.0.1)
- [Docker] Support ARM64 architecture ([PR#130](https://github.com/mapbender/mapbender-starter/pull/130))
- [Docker] Add JPEG support ([PR#132](https://github.com/mapbender/mapbender-starter/pull/132))
- [Docker] Add JPEG support and modify php.ini ([PR#132](https://github.com/mapbender/mapbender-starter/pull/132))
- Ignore deprecation notices in production logs ([PR#131](https://github.com/mapbender/mapbender-starter/pull/131))

## v4.0.0
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RUN docker-php-ext-install opcache

RUN rm /etc/apache2/sites-enabled/*
COPY ./docker/mapbender_apache.conf /etc/apache2/sites-enabled/
COPY ./docker/php.ini /usr/local/etc/php/php.ini

RUN sed -ri -e 's!80!8080!g' /etc/apache2/ports.conf
RUN a2enmod rewrite remoteip
Expand Down
22 changes: 22 additions & 0 deletions docker/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
max_input_vars = 8000
expose_php = Off
error_reporting = E_ALL ^ E_NOTICE
display_errors = Off
log_errors = On
error_log = /dev/stderr
date.timezone = UTC
allow_url_fopen = On
post_max_size = 32M
upload_max_filesize = 32M
opcache.max_accelerated_files = 7963
opcache.validate_timestamps = On
opcache.revalidate_freq = 2
# to support Symfony annotations
opcache.save_comments = 1
opcache.load_comments = 1
opcache.fast_shutdown = 1
opcache.enable_file_override = Off
memory_limit = 1536M
max_execution_time = 360
sys_temp_dir = /tmp
session.gc_maxlifetime = 4800

0 comments on commit 09e9898

Please sign in to comment.