From 02e82d39dc6bf355709db9f00ec82eccd6a4e999 Mon Sep 17 00:00:00 2001 From: Florian Trayon <26360935+FlorianLeChat@users.noreply.github.com> Date: Fri, 22 Nov 2024 18:43:09 +0100 Subject: [PATCH] Improved PHP extension installation for production environment --- docker/Dockerfile.prod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile.prod b/docker/Dockerfile.prod index e7c7f70..ff60265 100644 --- a/docker/Dockerfile.prod +++ b/docker/Dockerfile.prod @@ -5,9 +5,9 @@ FROM php:fpm-alpine # Install some PHP extensions -RUN curl -sSLf -o /usr/local/bin/install-php-extensions https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions && \ - chmod +x /usr/local/bin/install-php-extensions && \ - install-php-extensions opcache +ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ + +RUN install-php-extensions opcache # Set the working directory to the website files WORKDIR /var/www/html