This commit is contained in:
Ronald A. Richardson
2023-04-06 14:00:50 +08:00
parent 492bcd1274
commit 3e6873be16
6 changed files with 9 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ COPY docker/composer-install.sh ./
RUN chmod +x ./composer-install.sh && ./composer-install.sh
# WORKDIR /var/www/html
# COPY packages ./
# COPY . .
WORKDIR /var/www/html/api
RUN chown www-data:www-data /var/www/html
@@ -40,9 +40,9 @@ USER www-data
RUN mkdir -p ./storage/logs/ && ln -sf /dev/stdout ./storage/logs/laravel.log
# copy these first to not reinstall everything on a random file change
# COPY api/composer.json api/composer.lock ./
# RUN composer install --no-dev --no-scripts --no-autoloader
# COPY --chown=www-data:nogroup . ./
# RUN composer dumpautoload
RUN composer install --no-dev --no-scripts --no-autoloader
COPY --chown=www-data:nogroup . ./
RUN composer dumpautoload
USER root