docker: change user to www-data

This commit is contained in:
Zankaria 2024-03-31 15:49:09 +02:00 committed by Zankaria
parent 726de817b1
commit 5bf2634bf6
5 changed files with 20 additions and 21 deletions

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