File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,6 +190,8 @@ services:
190190 - ADDITIONAL_LOCALES=${PHP_FPM_ADDITIONAL_LOCALES}
191191 - INSTALL_FFMPEG=${PHP_FPM_FFMPEG}
192192 - INSTALL_XHPROF=${PHP_FPM_INSTALL_XHPROF}
193+ - PUID=${PHP_FPM_PUID}
194+ - PGID=${PHP_FPM_PGID}
193195 - http_proxy
194196 - https_proxy
195197 - no_proxy
Original file line number Diff line number Diff line change @@ -193,6 +193,9 @@ PHP_FPM_INSTALL_SSHPASS=false
193193PHP_FPM_FFMPEG=false
194194PHP_FPM_ADDITIONAL_LOCALES="es_ES.UTF-8 fr_FR.UTF-8"
195195
196+ PHP_FPM_PUID=1000
197+ PHP_FPM_PGID=1000
198+
196199### PHP_WORKER ############################################
197200
198201PHP_WORKER_INSTALL_PGSQL=false
Original file line number Diff line number Diff line change @@ -759,7 +759,14 @@ RUN apt-get clean && \
759759 rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
760760 rm /var/log/lastlog /var/log/faillog
761761
762- RUN usermod -u 1000 www-data
762+ # Configure non-root user.
763+ ARG PUID=1000
764+ ENV PUID ${PUID}
765+ ARG PGID=1000
766+ ENV PGID ${PGID}
767+
768+ RUN groupmod -o -g ${PGID} www-data && \
769+ usermod -o -u ${PUID} -g www-data www-data
763770
764771# Adding the faketime library to the preload file needs to be done last
765772# 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