Skip to content

Commit

Permalink
Merge pull request #132 from mapbender/work/docker-jpeg-support
Browse files Browse the repository at this point in the history
Add JPEG support to dockerfile
  • Loading branch information
Phocacius authored Aug 28, 2024
2 parents 26aab9c + 09e9898 commit 2f89da2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +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 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
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*

RUN docker-php-ext-install pdo_pgsql
RUN docker-php-ext-configure gd --with-jpeg --with-freetype
RUN docker-php-ext-install curl gd intl mbstring zip bz2 xml pdo_sqlite ldap
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 2f89da2

Please sign in to comment.