FROM php:8.2-apache

# Apache modüllerini aktif et (Rewrite, Expires, Sıkıştırma için)
RUN a2enmod rewrite expires deflate headers

# Proje dosyalarını kopyala
COPY . /var/www/html/

# İzinleri ayarla
RUN chown -R www-data:www-data /var/www/html/

# Çalışma dizini
WORKDIR /var/www/html

EXPOSE 80
