Skip to content

Commit 1212285

Browse files
committed
build: improved Docker configuration
1 parent 089b92a commit 1212285

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.docker/php-fpm/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ RUN pecl install xdebug-3.4.1 \
6464
#=== php default ===
6565
ENV PMF_TIMEZONE="Europe/Berlin" \
6666
PMF_ENABLE_UPLOADS=On \
67-
PMF_MEMORY_LIMIT=2048M \
67+
PMF_MEMORY_LIMIT=4096M \
6868
PMF_DISABLE_HTACCESS="" \
6969
PHP_LOG_ERRORS=On \
7070
PHP_ERROR_REPORTING=E_ALL \
@@ -73,8 +73,8 @@ ENV PMF_TIMEZONE="Europe/Berlin" \
7373

7474
#=== Set custom entrypoint ===
7575
COPY ./docker-entrypoint.sh /entrypoint
76-
#RUN chmod +x /entrypoint
77-
#ENTRYPOINT [ "/entrypoint" ]
76+
RUN chmod +x /entrypoint
77+
ENTRYPOINT [ "/entrypoint" ]
7878

7979
#=== Re-Set CMD as we changed the default entrypoint ===
8080
CMD [ "php-fpm" ]

.docker/php-fpm/docker-entrypoint.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ fi
7272
echo "opcache.memory_consumption=192"
7373
echo "opcache.max_wasted_percentage=10"
7474
echo "opcache.interned_strings_buffer=16"
75-
echo "opcache.fast_shutdown=1"
75+
echo "opcache.fast_shutdown=0"
7676
} | tee $PHP_INI_DIR/conf.d/opcache-recommended.ini
7777

78-
#=== Start nginx and php-fpm ===
79-
nginx
80-
docker-php-entrypoint "$@"
78+
#=== Start php-fpm ===
79+
exec docker-php-entrypoint php-fpm

0 commit comments

Comments
 (0)