FROM debian:bookworm-slim RUN apt-get update && apt-get install -y \ php \ apache2 \ libapache2-mod-php \ git \ && rm -rf /var/lib/apt/lists/* COPY . /var/www/html RUN rm -f /var/www/html/index.html EXPOSE 80 CMD ["apache2ctl", "-D", "FOREGROUND"]