mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-22 16:23:18 +01:00
No need for /var/www/.composer dir
This commit is contained in:
parent
544a4486a4
commit
1a04a75232
@ -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 . .
|
||||
|
Loading…
Reference in New Issue
Block a user