Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,30 @@ RUN set -eux; \
curl -fsSL https://github.com/Imagick/imagick/archive/"$IMAGICK_VERSION_FROM_SRC".tar.gz | tar xvz -C "/usr/src/php/ext/imagick" --strip 1 && \
docker-php-ext-install imagick; \
\
\
# Install libvips build dependencies \
apt-get install -y \
libffi-dev \
libjxl-dev libopenjp2-7-dev libimagequant-dev libtiff-dev libarchive-dev libheif-dev libpoppler-glib-dev librsvg2-dev libcgif-dev libexif-dev \
libmagickcore-7-dev unzip wget meson \
; \
# get the latest release zipball from GitHub
curl -s https://api.github.com/repos/libvips/libvips/releases/latest | grep -wo "https.*zipball" | wget -qi - -O libvips.zip; \
unzip libvips.zip; \
cd libvips*; \
# we need to build libvips from source in order to utilize ImageMagick 7 installed above
meson setup build --libdir /usr/lib/x86_64-linux-gnu; \
cd build; \
meson compile; \
meson install; \
cd ../..; \
rm -r libvips*; \
\
docker-php-ext-install ffi; \
docker-php-ext-enable ffi; \
\
apt-get remove -y meson unzip wget; \
\
build-cleanup.sh; \
\
ldconfig /usr/local/lib; \
Expand Down
Loading