From d40a6072360a76e18571a3167b34769098c8f97c Mon Sep 17 00:00:00 2001 From: Andreas Palm Date: Mon, 4 Nov 2024 22:46:03 +0100 Subject: [PATCH] Docker: improve PHP settings --- docker/Dockerfile | 4 +++- docker/php/memory.ini | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 docker/php/memory.ini diff --git a/docker/Dockerfile b/docker/Dockerfile index 1fe08d88..69deb9a8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -21,7 +21,9 @@ WORKDIR /app RUN apt-get update && apt-get install -y ${DEB_PKG} ${DEB_PKG_TMP} && \ docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \ docker-php-ext-install ${PHP_EXT} && \ - apt-get remove --purge -y ${DEB_PKG_TMP} + apt-get remove --purge -y ${DEB_PKG_TMP} && \ + mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" +COPY docker/php "$PHP_INI_DIR/conf.d/" COPY --chown=www-data:www-data . /var/www/html COPY --chown=www-data:www-data --from=frontend /app/www/dist /var/www/html/www/dist \ No newline at end of file diff --git a/docker/php/memory.ini b/docker/php/memory.ini new file mode 100644 index 00000000..a91d007d --- /dev/null +++ b/docker/php/memory.ini @@ -0,0 +1,3 @@ +memory_limit = 256M +upload_max_filesize = 32M +post_max_size = 32M \ No newline at end of file