From 9d346c475784f13381a5d8566d873b10b4205d01 Mon Sep 17 00:00:00 2001 From: filesite Date: Tue, 25 Oct 2022 00:03:34 +0800 Subject: [PATCH] php extension install readme update --- php_extension_install.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/php_extension_install.md b/php_extension_install.md index 5f25c57..e75e074 100644 --- a/php_extension_install.md +++ b/php_extension_install.md @@ -1,12 +1,29 @@ # PHP Extensions needed * php-mbstring +* php-gd ## install php extensions in docker +### alpine + ``` docker exec -it {container id} sh apk add php-mbstring ... ``` + +### php-fpm:alpine + +``` +docker exec -it {container id} sh +apk add \ + zlib-dev \ + libpng-dev \ + freetype-dev \ + libjpeg-turbo-dev \ + && docker-php-ext-configure gd --with-freetype --with-jpeg \ + && docker-php-ext-install -j$(nproc) gd +... +```