Skip to content

Instantly share code, notes, and snippets.

@buth
Last active May 2, 2024 05:37
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save buth/1291c75b1414dd7cea21 to your computer and use it in GitHub Desktop.
Save buth/1291c75b1414dd7cea21 to your computer and use it in GitHub Desktop.
Docker Install ImageMagick
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*
@dhakalkamal
Copy link

Are you using these command in ubuntu terminal or inside the docker container shell?

@armourjami
Copy link

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.

@DenisBalan
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment