-
-
Save buth/1291c75b1414dd7cea21 to your computer and use it in GitHub Desktop.
RUN \ | |
curl -sfLO http://www.imagemagick.org/download/ImageMagick-6.9.0-4.tar.gz && \ | |
echo 'cf51a1c6ebf627c627a8e6ac20aecce5f1425907c2cdb98c5a60f329c5c6caf2 ImageMagick-6.9.0-4.tar.gz' | sha256sum -c - && \ | |
tar -xzf ImageMagick-6.9.0-4.tar.gz && \ | |
cd ImageMagick-6.9.0-4 && \ | |
./configure --prefix /usr/local && \ | |
make install && \ | |
cd .. && \ | |
rm -rf ImageMagick* |
I my case, I resolved similar errors by making sure the initial image had curl
, tar
, xz-utils
, build-essential
, etc.
# https://hub.docker.com/r/starefossen/node-imagemagick/~/dockerfile/
# with modifications
FROM ubuntu:16.04
...
RUN apt-get update -y \
&& apt-get install -y curl tar file xz-utils build-essential
RUN \
curl ...
Are you using these command in ubuntu terminal or inside the docker container shell?
Service 'web' failed to build: The command '/bin/sh -c curl -sfLO http://www.imagemagick.org/download/ImageMagick-6.9.0-4.tar.gz && echo 'cf51a1c6ebf627c627a8e6ac20aecce5f1425907c2cdb98c5a60f329c5c6caf2 ImageMagick-6.9.0-4.tar.gz' | sha256sum -c - && tar -xzf ImageMagick-6.9.0-4.tar.gz && cd ImageMagick-6.9.0-4 && ./configure --prefix /usr/local && make install && cd .. && rm -rf ImageMagick*' returned a non-zero code: 22
The url couldn't resolve, the file http://www.imagemagick.org/download/ImageMagick-6.9.0-4.tar.gz no longer exists. To see a list of available files go to http://www.imagemagick.org/download/ So for example I found http://www.imagemagick.org/download/ImageMagick-7.0.8-26.tar.gz and works without error.
return always latest version - https://www.imagemagick.org/download/ImageMagick.tar.gz
Service 'web' failed to build: The command '/bin/sh -c curl -sfLO http://www.imagemagick.org/download/ImageMagick-6.9.0-4.tar.gz && echo 'cf51a1c6ebf627c627a8e6ac20aecce5f1425907c2cdb98c5a60f329c5c6caf2 ImageMagick-6.9.0-4.tar.gz' | sha256sum -c - && tar -xzf ImageMagick-6.9.0-4.tar.gz && cd ImageMagick-6.9.0-4 && ./configure --prefix /usr/local && make install && cd .. && rm -rf ImageMagick*' returned a non-zero code: 22