docker: change user to www-data

This commit is contained in:
Zankaria committed 2024-04-16 22:32:41 +02:00
1 parent d55961995c
commit 7979404c1b
5 files changed
+20 -21

No files matched your search

+2 -4
View File
@@ -33,8 +33,7 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y \
&& pecl install imagick \
&& pecl install -o -f igbinary \
&& docker-php-ext-install gd zip opcache intl pdo pdo_mysql mysqli bcmath gettext iconv mbstring curl \
&& docker-php-ext-enable igbinary redis imagick \
&& useradd -MU leftypol
&& docker-php-ext-enable igbinary redis imagick
COPY --from=composer /usr/bin/composer /usr/bin/composer
COPY . /code
@@ -43,7 +42,6 @@ RUN /code/docker/common-setup.sh \
&& ln -s /code/composer.json /code/composer.lock /var/www/ \
&& cd /var/www && composer install
# RUN /code/docker/common-setup.sh php
WORKDIR "/var/www"
CMD ["php-fpm"]
CMD [ "php-fpm" ]
EXPOSE 9000
+2 -2
View File
@@ -1,6 +1,6 @@
[www]
user = leftypol
group = leftypol
user = www-data
group = www-data
listen = 127.0.0.1:9000
pm = static
pm.max_children = 16