mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-26 10:15:40 +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 && \
|
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 . .
|
||||||
|
Loading…
Reference in New Issue
Block a user