Skip to content

Commit

Permalink
hardcode php values
Browse files Browse the repository at this point in the history
  • Loading branch information
slapcat committed Dec 25, 2024
1 parent 880945e commit 85e240a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
14 changes: 6 additions & 8 deletions images/nextcloud-30.0.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
ca-certificates \
libmagickcore-6.q16-6-extra

ENV PHP_MEMORY_LIMIT -1
ENV PHP_UPLOAD_LIMIT 16G
ENV CLI_INI_DIR /etc/php/8.2/cli/conf.d
ENV APACHE_INI_DIR /etc/php/8.2/apache2/conf.d

Expand All @@ -27,9 +25,9 @@ RUN { \
echo 'opcache.revalidate_freq=60'; \
echo 'opcache.jit=1255'; \
echo 'opcache.jit_buffer_size=128M'; \
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
echo 'memory_limit=-1'; \
echo 'upload_max_filesize=16G'; \
echo 'post_max_size=16G'; \
echo 'apc.enable_cli=1'; \
echo 'output_buffering = off'; \
} > "${APACHE_INI_DIR}/99-override.ini"; \
Expand All @@ -43,9 +41,9 @@ RUN { \
echo 'opcache.revalidate_freq=60'; \
echo 'opcache.jit=1255'; \
echo 'opcache.jit_buffer_size=128M'; \
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
echo 'memory_limit=-1'; \
echo 'upload_max_filesize=16G'; \
echo 'post_max_size=16G'; \
echo 'apc.enable_cli=1'; \
echo 'output_buffering = off'; \
} > "${CLI_INI_DIR}/99-override.ini";
Expand Down
9 changes: 0 additions & 9 deletions install.sh

This file was deleted.

0 comments on commit 85e240a

Please sign in to comment.