Learn by Directing AI
All materials

Dockerfile

Dockerfile
FROM php:8.1-apache

RUN docker-php-ext-install mysqli pdo pdo_mysql

RUN a2enmod rewrite headers

COPY app/ /var/www/html/

RUN chown -R www-data:www-data /var/www/html

# Deliberately expose server version (HARD-L.2 target)
# Deliberately enable directory listing (HARD-L.2 target)
# No security headers configured (HARD-L.1 target)

EXPOSE 80