-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
32 lines (26 loc) · 976 Bytes
/
dockerfile
File metadata and controls
32 lines (26 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM node:12.22.6-alpine
LABEL maintainer="nico@wepublish.ch"
RUN apk update
ARG LIBVIPS_VERSION=8.7.0
ARG LIBVIPS_SOURCE_TAR=vips-${LIBVIPS_VERSION}.tar.gz
ARG LIBVIPS_SOURCE_URL=https://github.com/libvips/libvips/releases/download/v${LIBVIPS_VERSION}/${LIBVIPS_SOURCE_TAR}
# Install build tools
RUN apk add python gcc g++ make --update-cache
# Install libvips dependencies
RUN apk add libjpeg-turbo-dev libexif-dev lcms2-dev fftw-dev giflib-dev glib-dev libpng-dev \
libwebp-dev expat-dev orc-dev tiff-dev librsvg-dev --update-cache --repository https://dl-3.alpinelinux.org/alpine/edge/testing/
# Build libvips with SVG support
RUN mkdir ./libvips \
&& cd ./libvips \
&& wget ${LIBVIPS_SOURCE_URL} \
&& tar -xzf ${LIBVIPS_SOURCE_TAR} --strip 1 \
&& ./configure \
--prefix=/usr \
--enable-debug=no \
--without-gsf \
--disable-static \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--docdir=/usr/share/doc \
&& make \
&& make install