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 \ postgresql-dev \
sqlite sqlite-dev \ sqlite sqlite-dev \
libxml2-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 # Install php extensions
RUN docker-php-ext-install -j$(nproc) \ RUN docker-php-ext-install -j$(nproc) \
@ -56,7 +66,6 @@ RUN docker-php-ext-install -j$(nproc) \
xml \ xml \
zip zip
# #
# Final image # Final image
# #
@ -65,7 +74,7 @@ FROM php:${PHP_VERSION}
ARG ENVIRONMENT=production ARG ENVIRONMENT=production
# install system libs # 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 # Install apps
RUN apk add --no-cache wget curl bash git openssh supervisor nginx openssl zip RUN apk add --no-cache wget curl bash git openssh supervisor nginx openssl zip