-
-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
FROM node:lts-alpine | ||
|
||
ARG ALPINE_VERSION=3.16 | ||
ARG VIPS_VERSION=8.13.3 | ||
ARG VIPS_VERSION=8.14.5 | ||
|
||
RUN apk -U upgrade \ | ||
&& apk add \ | ||
bash giflib glib lcms2 libexif \ | ||
libgsf libjpeg-turbo libpng librsvg libwebp \ | ||
orc pango tiff \ | ||
--repository https://alpine.global.ssl.fastly.net/alpine/v${ALPINE_VERSION}/community/ \ | ||
--repository https://alpine.global.ssl.fastly.net/alpine/v${ALPINE_VERSION}/main/ \ | ||
bash pkgconf \ | ||
libjpeg-turbo libexif librsvg cgif tiff libspng libimagequant \ | ||
--no-cache \ | ||
&& apk add \ | ||
build-base giflib-dev glib-dev lcms2-dev libexif-dev \ | ||
libgsf-dev libjpeg-turbo-dev libpng-dev librsvg-dev libwebp-dev \ | ||
orc-dev pango-dev tiff-dev \ | ||
build-base gobject-introspection-dev meson \ | ||
libjpeg-turbo-dev libexif-dev librsvg-dev cgif-dev tiff-dev libspng-dev libimagequant-dev \ | ||
--virtual vips-dependencies \ | ||
--repository https://alpine.global.ssl.fastly.net/alpine/v${ALPINE_VERSION}/community/ \ | ||
--repository https://alpine.global.ssl.fastly.net/alpine/v${ALPINE_VERSION}/main/ \ | ||
--no-cache \ | ||
&& wget -O- https://github.com/libvips/libvips/releases/download/v${VIPS_VERSION}/vips-${VIPS_VERSION}.tar.gz | tar xzC /tmp \ | ||
&& wget -O- https://github.com/libvips/libvips/releases/download/v${VIPS_VERSION}/vips-${VIPS_VERSION}.tar.xz | tar xJC /tmp \ | ||
&& cd /tmp/vips-${VIPS_VERSION} \ | ||
&& ./configure \ | ||
&& make \ | ||
&& make install-strip \ | ||
&& meson setup build-dir \ | ||
&& cd build-dir \ | ||
&& ninja \ | ||
&& ninja test \ | ||
&& ninja install \ | ||
&& rm -rf /tmp/vips-${VIPS_VERSION} |