mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 12:12:40 +02:00
Freeze libvips and ImageMagick versions in Dockerfile
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
FROM golang:1-buster
|
FROM golang:1-buster
|
||||||
LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"
|
LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"
|
||||||
|
|
||||||
|
ARG VIPS_VERSION=8.9.1
|
||||||
|
ARG IMAGEMAGICK_VERSION=7.0.9-20
|
||||||
|
|
||||||
ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig
|
ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig
|
||||||
ENV LD_LIBRARY_PATH /lib64:/usr/lib64:/usr/local/lib
|
ENV LD_LIBRARY_PATH /lib64:/usr/lib64:/usr/local/lib
|
||||||
ENV CGO_LDFLAGS_ALLOW "-s|-w"
|
ENV CGO_LDFLAGS_ALLOW "-s|-w"
|
||||||
@@ -29,9 +32,8 @@ RUN apt-get update \
|
|||||||
|
|
||||||
# Build ImageMagick
|
# Build ImageMagick
|
||||||
RUN cd /root \
|
RUN cd /root \
|
||||||
&& mkdir ImageMagick \
|
&& curl -Ls https://github.com/ImageMagick/ImageMagick/archive/$IMAGEMAGICK_VERSION.tar.gz | tar -xz \
|
||||||
&& curl -Ls https://imagemagick.org/download/ImageMagick.tar.gz | tar -xz -C ImageMagick --strip-components 1 \
|
&& cd ImageMagick-$IMAGEMAGICK_VERSION \
|
||||||
&& cd ImageMagick \
|
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
--enable-silent-rules \
|
--enable-silent-rules \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
@@ -62,8 +64,6 @@ RUN cd /root \
|
|||||||
|
|
||||||
# Build libvips
|
# Build libvips
|
||||||
RUN cd /root \
|
RUN cd /root \
|
||||||
&& export VIPS_VERSION=$(curl -s "https://api.github.com/repos/libvips/libvips/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') \
|
|
||||||
&& echo "Vips version: $VIPS_VERSION" \
|
|
||||||
&& curl -Ls https://github.com/libvips/libvips/releases/download/v$VIPS_VERSION/vips-$VIPS_VERSION.tar.gz | tar -xz \
|
&& curl -Ls https://github.com/libvips/libvips/releases/download/v$VIPS_VERSION/vips-$VIPS_VERSION.tar.gz | tar -xz \
|
||||||
&& cd vips-$VIPS_VERSION \
|
&& cd vips-$VIPS_VERSION \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
Reference in New Issue
Block a user