Files
finance/dockerfile
T
Ümit Tunç f23743adab 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.
2025-01-20 16:25:22 +03:00

26 lines
623 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ... mevcut kod ...
FROM php:8.1-fpm
# Gerekli uzantıları yükleyin
RUN docker-php-ext-install pdo pdo_mysql
# Composer'ı yükleyin
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Çalışma dizinini ayarlayın
WORKDIR /var/www
# Uygulama dosyalarını kopyalayın
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 ...