first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
30
base/imagemagick/7.0.8-20/Dockerfile
Normal file
30
base/imagemagick/7.0.8-20/Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM vulhub/ghostscript:9.25
|
||||
|
||||
LABEL maintainer="phith0n <root@leavesongs.com>"
|
||||
|
||||
ARG IM_VERSION=7.0.8-10
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& savedAptMark="$(apt-mark showmanual)" \
|
||||
&& apt-get install -y --no-install-recommends automake autoconf libtool libltdl-dev wget ca-certificates xz-utils gcc make libpng-dev libjpeg62-turbo-dev \
|
||||
libfontconfig1-dev libfreetype6-dev librsvg2-dev libxml2-dev zlib1g-dev libgif-dev \
|
||||
&& wget -qO- https://github.com/ImageMagick/ImageMagick/archive/${IM_VERSION}.tar.gz \
|
||||
| tar xz --strip-components=1 -C /usr/src \
|
||||
&& cd /usr/src \
|
||||
&& ./configure --prefix=/usr --with-gslib --disable-dependency-tracking \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& ldconfig /usr/lib \
|
||||
# clean
|
||||
&& apt-mark auto '.*' > /dev/null \
|
||||
&& apt-mark manual $savedAptMark \
|
||||
&& ldd /usr/bin/* \
|
||||
| awk '/=>/ { print $3 }' \
|
||||
| sort -u \
|
||||
| xargs -r dpkg-query -S \
|
||||
| cut -d: -f1 \
|
||||
| sort -u \
|
||||
| xargs -rt apt-mark manual \
|
||||
\
|
||||
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
|
||||
&& rm -rf /var/lib/apt/lists/* /usr/src/*
|
Reference in New Issue
Block a user