File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,11 +8,12 @@ COPY --from=composer/composer:latest-bin /composer /usr/bin/composer
88ARG APP_GH_REF
99ENV DEBIAN_FRONTEND=noninteractive
1010
11- # Update debian packages
11+ # Update and install required debian packages
1212RUN set -ex; \
1313 apt-get update; \
1414 apt-get upgrade --yes; \
1515 apt-get install --yes --no-install-recommends git unzip; \
16+ apt-get install --yes libpng-dev libjpeg-dev; \
1617 apt-get clean; \
1718 rm -rf /var/lib/apt/lists/*
1819
@@ -21,6 +22,8 @@ RUN set -ex; \
2122 cp "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" ; \
2223 a2enmod rewrite; \
2324 a2enmod headers; \
25+ docker-php-ext-configure gd --with-jpeg; \
26+ docker-php-ext-install -j$(nproc) gd; \
2427 docker-php-ext-install -j$(nproc) mysqli; \
2528 pecl install timezonedb; \
2629 docker-php-ext-enable timezonedb
You can’t perform that action at this time.
0 commit comments