From f23743adab2db99b58ff072652be90aa2564bb83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Mon, 20 Jan 2025 16:25:22 +0300 Subject: [PATCH] Enhance Dockerfile with file permission settings - Added commands to set ownership and permissions for the /var/www directory and its subdirectories, ensuring proper access for the web server. - This change improves security and functionality by configuring the environment for the Laravel application. --- dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dockerfile b/dockerfile index 340ff17..a597f42 100644 --- a/dockerfile +++ b/dockerfile @@ -16,4 +16,11 @@ COPY . . # Bağımlılıkları yükleyin RUN composer install +# Dosya izinlerini ayarlama +RUN chown -R www-data:www-data /var/www && \ + chmod -R 755 /var/www && \ + chmod -R 775 /var/www/storage && \ + chmod -R 775 /var/www/storage/app/private && \ + chmod -R 775 /var/www/storage/app/private/scribe + # ... mevcut kod ... \ No newline at end of file