This commit is contained in:
Ronald A. Richardson
2023-08-02 17:41:28 +08:00
parent 3aa5e2f89e
commit ed72c2afdd
2 changed files with 1 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ jobs:
uses: aws-actions/amazon-ecr-login@v1
- name: Prepare Composer Auth Secret
run: echo '${{ secrets.COMPOSER_AUTH }}' > composer-auth.json
run: echo '${{ env.COMPOSER_AUTH }}' > composer-auth.json
- name: Build and Release
uses: docker/bake-action@v2

View File

@@ -45,11 +45,9 @@ RUN chown -R www-data:www-data /var/www/html/api
RUN mkdir -p ./storage/logs/ && ln -sf /dev/stdout ./storage/logs/laravel-$(date +'%Y-%m-%d').log
RUN chown -R www-data:www-data /var/www/html/api/storage
RUN chmod -R 755 /var/www/html/api/storage
RUN export LOG_CHANNEL=stderr
USER www-data
RUN composer install --no-cache
RUN composer dumpautoload
RUN unset LOG_CHANNEL
# Continue
USER root