add jpeg gd, sudo
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Aleksander Cynarski 2021-06-14 16:53:17 +02:00
parent b8b6d04023
commit 9f5e22fe89
Signed by: paramah
GPG Key ID: C4340BA42B9C173A

View File

@ -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