Skip to content

Commit

Permalink
Fix issue 54 (#55)
Browse files Browse the repository at this point in the history
Add php module gd and required debian packages dependencies

Co-authored-by: Robin Alexander <robin.alexander@netplus.ch>
  • Loading branch information
colisee and Robin Alexander authored Aug 22, 2023
1 parent 0486604 commit 520132e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ COPY --from=composer/composer:latest-bin /composer /usr/bin/composer
ARG APP_GH_REF
ENV DEBIAN_FRONTEND=noninteractive

# Update debian packages
# Update and install required debian packages
RUN set -ex; \
apt-get update; \
apt-get upgrade --yes; \
apt-get install --yes --no-install-recommends git unzip; \
apt-get install --yes libpng-dev libjpeg-dev; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*

Expand All @@ -21,6 +22,8 @@ RUN set -ex; \
cp "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"; \
a2enmod rewrite; \
a2enmod headers; \
docker-php-ext-configure gd --with-jpeg; \
docker-php-ext-install -j$(nproc) gd; \
docker-php-ext-install -j$(nproc) mysqli; \
pecl install timezonedb; \
docker-php-ext-enable timezonedb
Expand Down

0 comments on commit 520132e

Please sign in to comment.