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.
This commit is contained in:
Ümit Tunç
2025-01-20 16:25:22 +03:00
parent 944758a215
commit f23743adab
+7
View File
@@ -16,4 +16,11 @@ COPY . .
# Bağımlılıkları yükleyin # Bağımlılıkları yükleyin
RUN composer install 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 ... # ... mevcut kod ...