From 1a04a75232cd9977930e7cc9fa8bcb96a07cef4f Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (desktop)" Date: Mon, 2 Aug 2021 12:34:51 -0400 Subject: [PATCH] No need for /var/www/.composer dir --- Dockerfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index dd83c511..61006645 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,10 +60,6 @@ WORKDIR /srv RUN chown -R www-data /srv && \ chmod 700 /srv -# Fix ownership for /var/www -RUN chown -R www-data /var/www && \ - chmod 700 /var/www - # Run without root USER www-data @@ -72,8 +68,7 @@ COPY --chown=www-data artisan composer.json composer.lock ./ # Disable xdebug RUN phpdismod xdebug COPY --chown=www-data database ./database -RUN composer install --prefer-dist --no-scripts --no-dev --no-autoloader && \ - rm -rf /var/www/.composer +RUN composer install --prefer-dist --no-scripts --no-dev --no-autoloader # Copy the rest of the code COPY --chown=www-data . .