2021-09-23 08:19:06 +02:00
|
|
|
FROM php:8-apache
|
2020-11-09 10:13:00 +01:00
|
|
|
EXPOSE 80
|
2021-11-25 16:10:20 +01:00
|
|
|
RUN apt update \
|
2021-11-25 20:50:24 +01:00
|
|
|
&& apt install -y wget gnupg \
|
2020-11-09 10:13:00 +01:00
|
|
|
&& 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 \
|
2021-06-13 12:33:56 +02:00
|
|
|
&& service apache2 restart \
|
|
|
|
&& mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
|
2021-11-25 16:04:29 +01:00
|
|
|
&& docker-php-ext-install -j$(nproc) opcache \
|
2021-11-25 16:11:27 +01:00
|
|
|
&& apt purge -y wget \
|
2021-11-25 16:46:10 +01:00
|
|
|
&& apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 78BD65473CB3BD13 \
|
2021-11-25 16:04:29 +01:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|