Skip to content

Commit e7b6b3b

Browse files
committed
Merge pull request #44 from vpetersson/master
Fixes #43. Adds support for JPEG.
2 parents a01d48c + 2e2036d commit e7b6b3b

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)