You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: layers/imagick/Dockerfile
+9-17Lines changed: 9 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -15,41 +15,33 @@ RUN tar xzf libwebp.tar.gz
15
15
WORKDIR ${IMAGICK_BUILD_DIR}/libwebp-1.3.2
16
16
RUN autoreconf -i && automake && autoconf
17
17
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
18
-
RUN make -j $(nproc)
19
-
RUN make install
18
+
RUN make -j $(nproc) && make install
20
19
21
20
# Compile libde265 (libheif dependency)
22
21
WORKDIR ${IMAGICK_BUILD_DIR}
23
-
RUN curl -Ls -o libde265.tar.gz https://github.com/strukturag/libde265/releases/download/v1.0.14/libde265-1.0.14.tar.gz
24
-
RUN tar xzf libde265.tar.gz
22
+
RUN curl -Ls -o libde265.tar.gz https://github.com/strukturag/libde265/releases/download/v1.0.14/libde265-1.0.14.tar.gz && tar xzf libde265.tar.gz
25
23
WORKDIR ${IMAGICK_BUILD_DIR}/libde265-1.0.14
26
24
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
27
-
RUN make -j $(nproc)
28
-
RUN make install
25
+
RUN make -j $(nproc) && make install
29
26
30
27
# Compile libheif
31
28
WORKDIR ${IMAGICK_BUILD_DIR}
32
-
RUN curl -Ls -o libheif.tar.gz https://github.com/strukturag/libheif/releases/download/v1.17.5/libheif-1.17.5.tar.gz
33
-
RUN tar xzf libheif.tar.gz
29
+
RUN curl -Ls -o libheif.tar.gz https://github.com/strukturag/libheif/releases/download/v1.17.5/libheif-1.17.5.tar.gz && tar xzf libheif.tar.gz
34
30
RUN mkdir ${IMAGICK_BUILD_DIR}/libheif-1.17.5/build
35
31
WORKDIR ${IMAGICK_BUILD_DIR}/libheif-1.17.5/build
36
32
RUN cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} ..
37
-
RUN make -j $(nproc)
38
-
RUN make install
33
+
RUN make -j $(nproc) && make install
39
34
40
35
# Compile gs
41
36
WORKDIR ${IMAGICK_BUILD_DIR}
42
-
RUN curl -Ls -o ghostscript.tar.gz https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9561/ghostscript-9.56.1.tar.gz
43
-
RUN tar xzf ghostscript.tar.gz
37
+
RUN curl -Ls -o ghostscript.tar.gz https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9561/ghostscript-9.56.1.tar.gz && tar xzf ghostscript.tar.gz
44
38
WORKDIR ${IMAGICK_BUILD_DIR}/ghostscript-9.56.1
45
39
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR} --without-x
46
-
RUN make -j $(nproc)
47
-
RUN cp bin/gs /tmp/gs
40
+
RUN make -j $(nproc) && cp bin/gs /tmp/gs
48
41
49
42
# Compile the ImageMagick library
50
43
WORKDIR ${IMAGICK_BUILD_DIR}
51
-
RUN curl -Ls -o ImageMagick.tar.gz https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-22.tar.gz
52
-
RUN tar xzf ImageMagick.tar.gz
44
+
RUN curl -Ls -o ImageMagick.tar.gz https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-22.tar.gz && tar xzf ImageMagick.tar.gz
53
45
WORKDIR ${IMAGICK_BUILD_DIR}/ImageMagick-7.1.1-22
54
46
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR} --with-webp --with-heic --disable-static --with-freetype=yes
55
47
RUN make -j $(nproc)
@@ -62,7 +54,7 @@ RUN convert -list configure
62
54
WORKDIR ${IMAGICK_BUILD_DIR}
63
55
RUN git clone https://github.com/Imagick/imagick
64
56
WORKDIR ${IMAGICK_BUILD_DIR}/imagick
65
-
# TODO; update the commit hash once this PR has been merged with PHP 8.3 support: https://github.com/Imagick/imagick/pull/641
57
+
# TODO; update the commit hash once this PR has been merged with PHP 8.3 support: https://github.com/Imagick/imagick/pull/641
66
58
RUN git reset --hard 28f27044e435a2b203e32675e942eb8de620ee58
0 commit comments