0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-17 08:34:48 +02:00

Runs update.sh

This commit is contained in:
GitHub Workflow 2021-01-22 15:26:57 +00:00
parent 3d6ae174a8
commit 6f7fc5a493
135 changed files with 4637 additions and 15 deletions

View file

@ -74,6 +74,7 @@ RUN set -ex; \
# set recommended PHP.ini settings
# see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
ENV PHP_INI_MEMORY_LIMIT %%PHP_INI_MEMORY_LIMIT%%
RUN { \
echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=8'; \
@ -85,7 +86,7 @@ RUN { \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \
touch /usr/local/etc/php/conf.d/memory-limit.ini; \
\
mkdir /var/www/data; \
chown -R www-data:root /var/www; \

View file

@ -43,6 +43,14 @@ file_env() {
unset "$fileVar"
}
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
file_memory_limit=/usr/local/etc/php/conf.d/memory-limit.ini
[ -s ${file_memory_limit} ] || echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > ${file_memory_limit}
if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip