mirror of
https://github.com/tchapi/davis.git
synced 2025-04-21 21:11:59 +02:00
Allow Composer to run as root in Dockerfile
This commit is contained in:
parent
74b0294a03
commit
d8e9f6e681
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user