From 25fa1f4ee99cab5893ee6f5281acef67f4a54594 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Sun, 13 Jun 2021 12:33:56 +0200 Subject: [PATCH] Optimized RUNs and put php in production mode Signed-off-by: Louis Vallat --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b9cc11a..a8d15ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,5 +5,6 @@ RUN apt-get update \ && 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 -RUN docker-php-ext-install -j$(nproc) opcache pdo_mysql mysqli \ No newline at end of file + && 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