17 lines
422 B
Docker
17 lines
422 B
Docker
FROM php:8.2-apache
|
|
|
|
# Install PDO MySQL extension for database connectivity
|
|
RUN docker-php-ext-install pdo pdo_mysql
|
|
|
|
# Enable Apache rewrite module
|
|
RUN a2enmod rewrite
|
|
|
|
# Increase request header field size limit to prevent "Size of a request header field exceeds server limit"
|
|
RUN echo "LimitRequestFieldSize 65536" >> /etc/apache2/apache2.conf
|
|
|
|
# Set working directory
|
|
WORKDIR /var/www/html
|
|
|
|
# Expose port 80
|
|
EXPOSE 80
|