Skip to content

Commit 2e2036d

Browse files
committed
Fixes #43. Adds support for JPEG.
The fix adds support for JPEG in GD. Had to run `docker-php-ext-configure` first in order to change the build parameters. Also, had to strip out the removal of `libpng`, as it is required with this setup.
1 parent a01d48c commit 2e2036d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ RUN apt-get update && apt-get install -y rsync && rm -r /var/lib/apt/lists/*
55
RUN a2enmod rewrite
66

77
# install the PHP extensions we need
8-
RUN apt-get update && apt-get install -y libpng12-dev && rm -rf /var/lib/apt/lists/* \
9-
&& docker-php-ext-install gd \
10-
&& apt-get purge --auto-remove -y libpng12-dev
8+
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev && rm -rf /var/lib/apt/lists/* \
9+
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
10+
&& docker-php-ext-install gd
1111
RUN docker-php-ext-install mysqli
1212

1313
VOLUME /var/www/html

0 commit comments

Comments
 (0)