set permissions on log file

This commit is contained in:
Ronald A. Richardson
2023-08-02 12:15:18 +08:00
parent c217d6dc44
commit 2656c764a1
2 changed files with 3 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ services:
REDIS_URL: tcp://cache
SESSION_DOMAIN: localhost
BROADCAST_DRIVER: socketcluster
MAIL_MAILER: ses
MAIL_FROM_NAME: Fleetbase
LOG_CHANNEL: daily
depends_on:

View File

@@ -43,6 +43,8 @@ WORKDIR /var/www/html/api
COPY --chown=www-data:nogroup ./api ./
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
USER www-data
RUN composer install --no-cache
RUN composer dumpautoload