Docker: improve PHP settings

This commit is contained in:
Andreas Palm 2024-11-04 22:46:03 +01:00
parent e21d1d29e0
commit d40a607236
2 changed files with 6 additions and 1 deletions

View File

@ -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

3
docker/php/memory.ini Normal file
View File

@ -0,0 +1,3 @@
memory_limit = 256M
upload_max_filesize = 32M
post_max_size = 32M