Skip to content

Commit 0996c52

Browse files
committed
Fix imagick
1 parent 9014d5a commit 0996c52

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

layers/imagick/Dockerfile

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,33 @@ RUN tar xzf libwebp.tar.gz
1515
WORKDIR ${IMAGICK_BUILD_DIR}/libwebp-1.3.2
1616
RUN autoreconf -i && automake && autoconf
1717
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
2019

2120
# Compile libde265 (libheif dependency)
2221
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
2523
WORKDIR ${IMAGICK_BUILD_DIR}/libde265-1.0.14
2624
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
2926

3027
# Compile libheif
3128
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
3430
RUN mkdir ${IMAGICK_BUILD_DIR}/libheif-1.17.5/build
3531
WORKDIR ${IMAGICK_BUILD_DIR}/libheif-1.17.5/build
3632
RUN cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} ..
37-
RUN make -j $(nproc)
38-
RUN make install
33+
RUN make -j $(nproc) && make install
3934

4035
# Compile gs
4136
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
4438
WORKDIR ${IMAGICK_BUILD_DIR}/ghostscript-9.56.1
4539
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
4841

4942
# Compile the ImageMagick library
5043
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
5345
WORKDIR ${IMAGICK_BUILD_DIR}/ImageMagick-7.1.1-22
5446
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR} --with-webp --with-heic --disable-static --with-freetype=yes
5547
RUN make -j $(nproc)
@@ -62,7 +54,7 @@ RUN convert -list configure
6254
WORKDIR ${IMAGICK_BUILD_DIR}
6355
RUN git clone https://github.com/Imagick/imagick
6456
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
6658
RUN git reset --hard 28f27044e435a2b203e32675e942eb8de620ee58
6759
RUN phpize
6860
RUN ./configure --with-imagick=${INSTALL_DIR}

0 commit comments

Comments
 (0)