Updated Dockerfile. ref #42
This commit is contained in:
+35
-40
@@ -5,7 +5,7 @@ WORKDIR /tmp/workdir
|
|||||||
ARG MAKEFLAGS="-j2"
|
ARG MAKEFLAGS="-j2"
|
||||||
ARG FFMPEG_VERSION=4.1.4
|
ARG FFMPEG_VERSION=4.1.4
|
||||||
ARG WT_VERSION=4.2.0
|
ARG WT_VERSION=4.2.0
|
||||||
ARG IMAGEMAGICK6_VERSION=6.9.10-71
|
ARG GRAPHICSMAGICK_VERSION=1.3.35
|
||||||
ARG PSTREAMS_VERSION=1.0.1
|
ARG PSTREAMS_VERSION=1.0.1
|
||||||
ARG LMS_VERSION=v3.6.3
|
ARG LMS_VERSION=v3.6.3
|
||||||
|
|
||||||
@@ -24,6 +24,7 @@ ARG BUILD_PACKAGES=" \
|
|||||||
make \
|
make \
|
||||||
libjpeg-turbo-dev \
|
libjpeg-turbo-dev \
|
||||||
openjpeg-dev \
|
openjpeg-dev \
|
||||||
|
jasper-dev \
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
tiff-dev \
|
tiff-dev \
|
||||||
nasm \
|
nasm \
|
||||||
@@ -95,50 +96,42 @@ RUN \
|
|||||||
make && \
|
make && \
|
||||||
make install
|
make install
|
||||||
|
|
||||||
# ImageMagick
|
# GraphicsMagick++
|
||||||
RUN \
|
RUN \
|
||||||
DIR=/tmp/imagemagick && mkdir -p ${DIR} && cd ${DIR} && \
|
DIR=/tmp/graphicsmagick && mkdir -p ${DIR} && cd ${DIR} && \
|
||||||
curl -sLO https://github.com/ImageMagick/ImageMagick6/archive/${IMAGEMAGICK6_VERSION}.tar.gz && \
|
curl -sL ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-${GRAPHICSMAGICK_VERSION}.tar.gz -o ${GRAPHICSMAGICK_VERSION}.tar.gz && \
|
||||||
tar -x --strip-components=1 -f ${IMAGEMAGICK6_VERSION}.tar.gz
|
tar -x --strip-components=1 -f ${GRAPHICSMAGICK_VERSION}.tar.gz
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
DIR=/tmp/imagemagick && mkdir -p ${DIR} && cd ${DIR} && \
|
DIR=/tmp/graphicsmagick && mkdir -p ${DIR} && cd ${DIR} && \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=${PREFIX} \
|
--prefix=${PREFIX} \
|
||||||
--enable-shared=yes \
|
--enable-shared=yes \
|
||||||
--disable-static \
|
--enable-static=no \
|
||||||
--disable-docs \
|
--with-quantum-depth=8 \
|
||||||
--with-magick-plus-plus \
|
--with-modules=no \
|
||||||
--without-zstd \
|
--with-frozenpaths=no \
|
||||||
--without-dps \
|
--with-magick-plus-plus=yes \
|
||||||
--without-autotrace \
|
--with-perl=no \
|
||||||
--without-dps \
|
--with-bzlib=no \
|
||||||
--without-fftw \
|
--with-dps=no \
|
||||||
--without-flif \
|
--with-fpx=no \
|
||||||
--without-fpx \
|
--with-jbig=no \
|
||||||
--without-djvu \
|
--with-webp=no \
|
||||||
--without-fontconfig \
|
--with-jp2=yes \
|
||||||
--without-freetype \
|
--with-jpeg=yes \
|
||||||
--without-raqm \
|
--with-lcms2=no \
|
||||||
--without-gslib \
|
--with-lzma=no \
|
||||||
--without-gvc \
|
--with-png=yes \
|
||||||
--without-heic \
|
--with-tiff=yes \
|
||||||
--without-jbig \
|
--with-trio=no \
|
||||||
--with-jpeg \
|
--with-ttf=no \
|
||||||
--without-jxl \
|
--with-tcmalloc=no \
|
||||||
--without-lcms \
|
--with-wmf=no \
|
||||||
--with-openjp2 \
|
--with-xml=no \
|
||||||
--without-lqr \
|
--with-zlib=yes \
|
||||||
--with-lzma \
|
--with-zstd=no \
|
||||||
--without-openexr \
|
--with-x=no && \
|
||||||
--without-pango \
|
|
||||||
--with-png \
|
|
||||||
--without-raw \
|
|
||||||
--without-rsvg \
|
|
||||||
--with-tiff \
|
|
||||||
--without-webp \
|
|
||||||
--without-wmf \
|
|
||||||
--without-xml && \
|
|
||||||
make && \
|
make && \
|
||||||
make install && \
|
make install && \
|
||||||
make distclean
|
make distclean
|
||||||
@@ -178,7 +171,8 @@ RUN \
|
|||||||
done && \
|
done && \
|
||||||
cp -r ${PREFIX}/lib /tmp/fakeroot/lib && \
|
cp -r ${PREFIX}/lib /tmp/fakeroot/lib && \
|
||||||
cp -r ${PREFIX}/share /tmp/fakeroot/share && \
|
cp -r ${PREFIX}/share /tmp/fakeroot/share && \
|
||||||
LD_LIBRARY_PATH=/tmp/fakeroot/lib /tmp/fakeroot/bin/ffmpeg -buildconf
|
rm -rf /tmp/fakeroot/share/doc && \
|
||||||
|
rm -rf /tmp/fakeroot/share/man
|
||||||
|
|
||||||
## Release Stage
|
## Release Stage
|
||||||
FROM alpine:3.10 AS release
|
FROM alpine:3.10 AS release
|
||||||
@@ -188,6 +182,7 @@ ARG RUNTIME_PACKAGES=" \
|
|||||||
openssl \
|
openssl \
|
||||||
libjpeg-turbo \
|
libjpeg-turbo \
|
||||||
openjpeg \
|
openjpeg \
|
||||||
|
jasper-libs \
|
||||||
libpng \
|
libpng \
|
||||||
tiff \
|
tiff \
|
||||||
libogg \
|
libogg \
|
||||||
|
|||||||
Reference in New Issue
Block a user