Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions layers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN yum install -y \
libbz-devel \
gcc

RUN curl -L https://github.com/ImageMagick/ImageMagick/archive/${IMAGICK_VERSION}.tar.gz -o ImageMagick-${IMAGICK_VERSION}.tar.gz && \
RUN curl -L https://github.com/ImageMagick/ImageMagick/archive/refs/tags/${IMAGICK_VERSION}.tar.gz -o ImageMagick-${IMAGICK_VERSION}.tar.gz && \
tar xfz ImageMagick-${IMAGICK_VERSION}.tar.gz && \
cd ImageMagick-${IMAGICK_VERSION} && \
./configure \
Expand All @@ -34,7 +34,8 @@ RUN curl -L https://github.com/ImageMagick/ImageMagick/archive/${IMAGICK_VERSION
make all && \
make install

RUN curl https://versaweb.dl.sourceforge.net/project/graphicsmagick/graphicsmagick/${GM_VERSION}/GraphicsMagick-${GM_VERSION}.tar.xz | tar -xJ && \
RUN curl -L https://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/${GM_VERSION}/GraphicsMagick-${GM_VERSION}.tar.xz > GraphicsMagick-${GM_VERSION}.tar.xz
RUN tar -xf GraphicsMagick-${GM_VERSION}.tar.xz && \
cd GraphicsMagick-${GM_VERSION} && \
./configure --prefix=/opt --enable-shared=no --enable-static=yes --with-gs-font-dir=/opt/share/fonts/default/Type1 && \
make && \
Expand Down Expand Up @@ -66,4 +67,4 @@ RUN mkdir -p /opt/share/fonts/default && \

RUN cd /opt && \
find . ! -perm -o=r -exec chmod +400 {} \; && \
zip -yr /tmp/aws-lambda-image-layer.zip ./*
zip -yr /tmp/aws-lambda-image-layer.zip ./*