lucianotonet commited on
Commit
df6891d
·
1 Parent(s): 0a9e19d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -38,11 +38,14 @@ RUN php artisan storage:link && \
38
  php artisan route:cache && \
39
  php artisan view:cache
40
 
41
- # Alterar o proprietário e as permissões do diretório de logs
42
  RUN chown -R www-data:www-data /app/storage && \
43
  chmod -R 775 /app/storage && \
44
  chown -R www-data:www-data /app/bootstrap/cache && \
45
- chmod -R 775 /app/bootstrap/cache
 
 
 
46
 
47
  EXPOSE 7860
48
 
 
38
  php artisan route:cache && \
39
  php artisan view:cache
40
 
41
+ # Change the owner and permissions of the log directory
42
  RUN chown -R www-data:www-data /app/storage && \
43
  chmod -R 775 /app/storage && \
44
  chown -R www-data:www-data /app/bootstrap/cache && \
45
+ chmod -R 775 /app/bootstrap/cache && \
46
+ touch /app/storage/logs/laravel.log && \
47
+ chown www-data:www-data /app/storage/logs/laravel.log && \
48
+ chmod 775 /app/storage/logs/laravel.log
49
 
50
  EXPOSE 7860
51