Merge pull request #90 from jkaninda/dev

Upgrade images to PHP 8.5 and fix php-fpm not starting as root
This commit is contained in:
jkaninda authored and GitHub committed 2026-10-21 20:53:47 +02:00
1 parent 033c6b213f
commit 7799d2fbc2
23 files changed
+705 -526

No files matched your search

+14 -1
View File
@@ -2,6 +2,19 @@ FROM php:7.3-fpm
ARG WORKDIR=/var/www/html
ENV DOCUMENT_ROOT=${WORKDIR}
ENV LARAVEL_PROCS_NUMBER=1
ENV APP_DIR=/var/www/html \
PHP_DATE_TIMEZONE=UTC \
PHP_DISPLAY_ERRORS=Off \
PHP_MEMORY_LIMIT=256M \
PHP_UPLOAD_MAX_FILESIZE=30M \
PHP_POST_MAX_SIZE=30M \
PHP_MAX_EXECUTION_TIME=30 \
PHP_OPCACHE_ENABLE=1 \
PHP_OPCACHE_ENABLE_CLI=0 \
PHP_OPCACHE_MEMORY_CONSUMPTION=512 \
PHP_OPCACHE_MAX_ACCELERATED_FILES=50000 \
PHP_OPCACHE_VALIDATE_TIMESTAMPS=0 \
PHP_OPCACHE_REVALIDATE_FREQ=0
ENV NODE_VERSION=16.x
ARG GROUP_ID=1000
ARG USER_ID=1000
@@ -88,7 +101,7 @@ RUN ln -s /usr/local/bin/entrypoint.sh /
ENTRYPOINT ["entrypoint.sh"]
RUN usermod -u ${USER_ID} ${USER_NAME}
RUN groupmod -g ${USER_ID} ${GROUP_NAME}
RUN groupmod -g ${GROUP_ID} ${GROUP_NAME}
RUN chown -R ${USER_NAME}:${GROUP_NAME} /var/www && \
chown -R ${USER_NAME}:${GROUP_NAME} /var/log/ && \
chown -R ${USER_NAME}:${GROUP_NAME} /etc/supervisor/conf.d/ && \