Skip to content

Commit 1aa60c8

Browse files
authored
Merge pull request #85 from burningmantech/yf-vips
Switched to using vips for image processing.
2 parents 0dc3f7b + 663e7e8 commit 1aa60c8

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

Dockerfile

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,31 @@ ADD --chmod=0755 \
1313
# Install OS packages required at runtime
1414
RUN apk update \
1515
&& apk add --no-cache \
16+
git \
1617
icu \
18+
icu-dev \
19+
libffi \
20+
libffi-dev \
1721
libjpeg-turbo \
22+
libjpeg-turbo-dev \
1823
libpng \
24+
libpng-dev \
1925
libwebp \
26+
libwebp-dev \
2027
libxml2 \
28+
libxml2-dev \
2129
libzip \
30+
libzip-dev \
2231
mysql-client \
32+
pcre-dev \
2333
tzdata \
34+
vips \
2435
zip \
25-
git \
26-
icu-dev \
27-
imagemagick \
28-
imagemagick-dev \
29-
libjpeg-turbo-dev \
30-
libpng-dev \
31-
libwebp-dev \
32-
libxml2-dev \
33-
libzip-dev \
34-
pcre-dev ${PHPIZE_DEPS} \
35-
&& install-php-extensions imagick/imagick@28f27044e435a2b203e32675e942eb8de620ee58 \
36-
&& docker-php-ext-configure opcache --enable-opcache \
36+
${PHPIZE_DEPS} \
37+
&& docker-php-ext-configure opcache --enable-opcache \
3738
&& docker-php-ext-configure intl \
3839
&& docker-php-ext-configure exif \
39-
&& docker-php-ext-configure gd \
40-
--with-jpeg=/usr/include/ \
41-
--with-webp=/usr/include/ \
42-
&& docker-php-ext-install -j$(nproc) \
43-
exif \
44-
gd \
40+
&& docker-php-ext-install -j$(nproc) \
4541
intl \
4642
opcache \
4743
pdo \
@@ -51,10 +47,12 @@ RUN apk update \
5147
&& docker-php-ext-enable swoole \
5248
&& docker-php-ext-configure pcntl --enable-pcntl \
5349
&& docker-php-ext-install pcntl \
54-
&& docker-php-ext-enable imagick \
50+
&& docker-php-ext-install -j$(nproc) exif \
51+
&& docker-php-ext-configure ffi --with-ffi \
52+
&& docker-php-ext-install -j$(nproc) ffi \
5553
&& apk del \
5654
icu-dev \
57-
imagemagick-dev \
55+
libffi-dev \
5856
libjpeg-turbo-dev \
5957
libpng-dev \
6058
libwebp-dev \

0 commit comments

Comments
 (0)