php-apache-pagespeed/Dockerfile
Louis Vallat 25fa1f4ee9 Optimized RUNs and put php in production mode
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-06-13 12:33:56 +02:00

11 lines
446 B
Docker

FROM php:7.4-apache
EXPOSE 80
RUN apt-get update \
&& apt-get install -y wget \
&& wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb -O /tmp/modpagespeed.deb \
&& dpkg -i /tmp/modpagespeed.deb \
&& rm /tmp/modpagespeed.deb \
&& service apache2 restart \
&& mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
&& docker-php-ext-install -j$(nproc) opcache pdo_mysql mysqli