blob: 941328c987b0d2b0cbbac4fc950aa3af9a68c92f (
plain) (
blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
FROM alpine as base
ARG PREFIX=/usr/local
ARG DESTDIR=/opt/spm/imagemagick-6.9.13-38-jpeg-png
RUN apk update && apk add \
make \
gcc \
pkgconf \
musl-dev \
wget
RUN wget https://imagemagick.org/archive/ImageMagick-6.9.13-38.tar.gz
RUN tar -xf ImageMagick-6.9.13-38.tar.gz
COPY --from=libjpeg:10 /opt/spm/libjpeg-10 /usr/local
COPY --from=libpng:1.6.54 /opt/spm/libpng-1.6.54 /usr/local
COPY --from=zlib:1.3.1 /opt/spm/zlib-1.3.1 /usr/local
WORKDIR /build-imagemagick
RUN CFLAGS='-ffunction-sections -fdata-sections' \
../ImageMagick-6.9.13-38/configure \
--with-security-policy=websafe \
--enable-shared=no \
--enable-static=yes \
--enable-openmp=no \
--enable-hdri=no \
--with-magick-plus-plus=no \
--with-utilities=no \
--with-jpeg \
--with-png \
--without-fftw \
--without-flif \
--without-fpx \
--without-djvu \
--without-fontconfig \
--without-freetype \
--without-raqm \
--without-gdi32 \
--without-gslib \
--without-dmr \
--without-heic \
--without-jbig \
--without-jxl \
--without-lcms \
--without-openjp2 \
--without-lqr \
--without-lzma \
--without-openexr \
--without-pango \
--without-raw \
--without-tiff \
--without-webp
RUN make -j$(nproc)
RUN make install DESTDIR=$DESTDIR
FROM scratch
COPY --from=base /opt/spm/imagemagick-6.9.13-38-jpeg-png/usr/local/ \
/opt/spm/imagemagick-6.9.13-38-jpeg-png
|