Allowed the removal of essential packages
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
8c058d5006
commit
bf34be2bbb
@ -1,12 +1,12 @@
|
|||||||
FROM php:8-apache
|
FROM php:8-apache
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
RUN apt-get update \
|
RUN apt update \
|
||||||
&& apt-get install -y wget libpq-dev \
|
&& apt install -y wget libpq-dev \
|
||||||
&& wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb -O /tmp/modpagespeed.deb \
|
&& wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb -O /tmp/modpagespeed.deb \
|
||||||
&& dpkg -i /tmp/modpagespeed.deb \
|
&& dpkg -i /tmp/modpagespeed.deb \
|
||||||
&& rm /tmp/modpagespeed.deb \
|
&& rm /tmp/modpagespeed.deb \
|
||||||
&& service apache2 restart \
|
&& service apache2 restart \
|
||||||
&& mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
|
&& mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
|
||||||
&& docker-php-ext-install -j$(nproc) opcache \
|
&& docker-php-ext-install -j$(nproc) opcache \
|
||||||
&& apt purge -y wget $(apt-mark showauto) \
|
&& apt purge -y --allow-remove-essential wget $(apt-mark showauto) \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
Loading…
Reference in New Issue
Block a user