# Use an official PHP runtime
FROM php:8.2-apache
# Prepare apt
RUN apt update
# Prepare fake ssl certifikat
RUN apt install -y ssl-cert
# Setup Apache2 mod_ssl
RUN a2enmod ssl
# Setup Apache2 HTTPS env
RUN a2ensite default-ssl.conf
# Enable Apache modules
##RUN a2enmod rewrite
# Install any extensions you need
##RUN docker-php-ext-install mysqli pdo pdo_mysql
# Set the working directory to /var/www/html
WORKDIR /var/www/html
# Copy the source code in /www into the container at /var/www/html
COPY ../www .