No need for /var/www/.composer dir

This commit is contained in:
Quentin McGaw (desktop) 2021-08-02 12:34:51 -04:00
parent 544a4486a4
commit 1a04a75232

View File

@ -60,10 +60,6 @@ WORKDIR /srv
RUN chown -R www-data /srv && \ RUN chown -R www-data /srv && \
chmod 700 /srv chmod 700 /srv
# Fix ownership for /var/www
RUN chown -R www-data /var/www && \
chmod 700 /var/www
# Run without root # Run without root
USER www-data USER www-data
@ -72,8 +68,7 @@ COPY --chown=www-data artisan composer.json composer.lock ./
# Disable xdebug # Disable xdebug
RUN phpdismod xdebug RUN phpdismod xdebug
COPY --chown=www-data database ./database COPY --chown=www-data database ./database
RUN composer install --prefer-dist --no-scripts --no-dev --no-autoloader && \ RUN composer install --prefer-dist --no-scripts --no-dev --no-autoloader
rm -rf /var/www/.composer
# Copy the rest of the code # Copy the rest of the code
COPY --chown=www-data . . COPY --chown=www-data . .