From 9f5e22fe89553011f14989703e020e7f904c20c9 Mon Sep 17 00:00:00 2001 From: Aleksander Cynarski Date: Mon, 14 Jun 2021 16:53:17 +0200 Subject: [PATCH] add jpeg gd, sudo --- Dockerfile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2bf51da..3d52dc0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,17 @@ RUN apk add --no-cache wget \ postgresql-dev \ sqlite sqlite-dev \ libxml2-dev \ - libzip libzip-dev zip + libzip libzip-dev zip \ + freetype-dev \ + libpng-dev \ + jpeg-dev \ + libjpeg-turbo-dev + +RUN docker-php-ext-configure gd \ + --with-freetype-dir=/usr/lib/ \ + --with-png-dir=/usr/lib/ \ + --with-jpeg-dir=/usr/lib/ \ + --with-gd # Install php extensions RUN docker-php-ext-install -j$(nproc) \ @@ -56,7 +66,6 @@ RUN docker-php-ext-install -j$(nproc) \ xml \ zip - # # Final image # @@ -65,7 +74,7 @@ FROM php:${PHP_VERSION} ARG ENVIRONMENT=production # install system libs -RUN apk add --no-cache libintl c-client libpng icu-libs libldap libpq libzip shadow +RUN apk add --no-cache libintl c-client libpng icu-libs libldap libpq libzip shadow sudo # Install apps RUN apk add --no-cache wget curl bash git openssh supervisor nginx openssl zip