19 lines
405 B
Docker
19 lines
405 B
Docker
FROM php:8.2-apache-bullseye
|
|
|
|
# Enable Apache rewrite module (optional but recommended)
|
|
RUN a2enmod rewrite
|
|
|
|
# Allow .htaccess overrides (even if you don't use it now)
|
|
RUN sed -ri 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf
|
|
|
|
# Set working directory
|
|
WORKDIR /var/www/html
|
|
|
|
# Copy your app
|
|
COPY . /var/www/html
|
|
|
|
# Permissions
|
|
RUN chown -R www-data:www-data /var/www/html
|
|
|
|
EXPOSE 80
|