FROM debian:latest
RUN apt-get update -y
RUN apt-get install apache2 -y
RUN apt-get clean
RUN a2enmod rewrite
RUN a2enmod deflate
RUN a2enmod headers
RUN echo "ServerTokens Prod" >> /etc/apache2/apache2.conf
RUN echo "ServerSignature Off" >> /etc/apache2/apache2.conf
RUN apt-get install -y php php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath php-intl php-bz2 php-ldap php-json
RUN sed -i -e 's/session.cookie_httponly =/session.cookie_httponly = on/g' /etc/php/7.4/apache2/php.ini
RUN sed -i -e 's/max_execution_time = 30/max_execution_time = 600/g' /etc/php/7.4/apache2/php.ini
EXPOSE 80
CMD ["/usr/sbin/apachectl", "-D", "FOREGROUND"]

Content type
Image
Digest
sha256:dab81e33b…
Size
115 MB
Last updated
over 3 years ago
docker pull ttoure/apachephpdebian:v1