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