Run php-fpm as user www

This commit is contained in:
Lou Knauer
2021-07-16 09:01:46 +02:00
parent d38a526bff
commit 0d0ad58045
3 changed files with 9 additions and 2 deletions

View File

@@ -77,6 +77,9 @@ COPY symfony.pool.conf /etc/php8/php-fpm.d/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN addgroup -S www
RUN adduser -S -D -H -g "php-fpm user" -G www -s /sbin/nologin www
ARG APP_ENVIRONMENT
ENV APP_ENV=${APP_ENVIRONMENT}
ENV APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629