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:
@@ -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 ...
|
||||
Reference in New Issue
Block a user