FROM php:7.4-apache
RUN echo "expose_php = Off" > /usr/local/etc/php/conf.d/security.ini
# Enable headers module
RUN a2enmod headers

# HARD disable Apache version everywhere (headers + error pages)
RUN echo "\
ServerTokens Prod\n\
ServerSignature Off\n\
" >> /etc/apache2/apache2.conf
COPY . /var/www/html/
EXPOSE 80
