File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -198,6 +198,8 @@ services:
198198 - ADDITIONAL_LOCALES=${PHP_FPM_ADDITIONAL_LOCALES}
199199 - INSTALL_FFMPEG=${PHP_FPM_FFMPEG}
200200 - INSTALL_XHPROF=${PHP_FPM_INSTALL_XHPROF}
201+ - PUID=${PHP_FPM_PUID}
202+ - PGID=${PHP_FPM_PGID}
201203 - http_proxy
202204 - https_proxy
203205 - no_proxy
Original file line number Diff line number Diff line change @@ -198,6 +198,9 @@ PHP_FPM_INSTALL_MAILPARSE=false
198198PHP_FPM_FFMPEG=false
199199PHP_FPM_ADDITIONAL_LOCALES="es_ES.UTF-8 fr_FR.UTF-8"
200200
201+ PHP_FPM_PUID=1000
202+ PHP_FPM_PGID=1000
203+
201204### PHP_WORKER ############################################
202205
203206PHP_WORKER_INSTALL_PGSQL=false
Original file line number Diff line number Diff line change @@ -789,7 +789,14 @@ RUN apt-get clean && \
789789 rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
790790 rm /var/log/lastlog /var/log/faillog
791791
792- RUN usermod -u 1000 www-data
792+ # Configure non-root user.
793+ ARG PUID=1000
794+ ENV PUID ${PUID}
795+ ARG PGID=1000
796+ ENV PGID ${PGID}
797+
798+ RUN groupmod -o -g ${PGID} www-data && \
799+ usermod -o -u ${PUID} -g www-data www-data
793800
794801# Adding the faketime library to the preload file needs to be done last
795802# otherwise it will preload it for all commands that follow in this file
You can’t perform that action at this time.
0 commit comments