Dockerfile
1 kB16 linesIn php-student-app.zip
php-student-app.zipDockerfile
FROM php:8.2-apache
# Install MySQL PDO extension
RUN docker-php-ext-install pdo pdo_mysql
# Enable Apache mod_rewrite (optional, for clean URLs)
RUN a2enmod rewrite
# Copy application files
COPY index.php /var/www/html/
# Set proper permissions
RUN chown -R www-data:www-data /var/www/html
# Expose port 80
EXPOSE 80