Allow Composer to run as root in Dockerfile

This commit is contained in:
tchapi 2024-02-14 23:04:30 +01:00
parent 74b0294a03
commit d8e9f6e681

View File

@ -65,7 +65,7 @@ WORKDIR /var/www/davis
# Install Composer 2, then dependencies
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN APP_ENV=prod composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader
RUN APP_ENV=prod COMPOSER_ALLOW_SUPERUSER=1 composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader
# PHP-FPM healthcheck
RUN set -xe && echo "pm.status_path = /status" >> /usr/local/etc/php-fpm.d/zz-docker.conf