Skip to content

Commit

Permalink
dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Mesut GENEZ committed Jun 14, 2024
1 parent 4e2dc75 commit c8c54b5
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,39 @@ FROM golang:1.21 as builder

# Ignore APT warnings about not having a TTY
ENV DEBIAN_FRONTEND=noninteractive \
IMAGEMAGICK_VERSION=7.1.1-27
IMAGEMAGICK_VERSION=7.1.1-33

RUN apt-get update \
&& apt-get install -y \
wget build-essential \
ffmpeg \
pkg-config \
libmagickcore-dev libmagickwand-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libgif-dev \
libx11-dev \
fontconfig fontconfig-config libfontconfig1-dev \
ghostscript gsfonts gsfonts-x11 \
libfreetype6-dev \
vim \
--no-install-recommends \
wget build-essential \
ffmpeg \
pkg-config \
libmagickcore-dev libmagickwand-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libgif-dev \
libx11-dev \
fontconfig fontconfig-config libfontconfig1-dev \
ghostscript gsfonts gsfonts-x11 \
libfreetype6-dev \
vim \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

RUN echo "Installing ImageMagick" && cd && \
wget https://download.imagemagick.org/ImageMagick/download/releases/ImageMagick-${IMAGEMAGICK_VERSION}.tar.xz && \
tar xvzf ImageMagick-${IMAGEMAGICK_VERSION}.tar.xz && \
tar xvzf ImageMagick-${IMAGEMAGICK_VERSION}.tar.gz && \
cd ImageMagick* && \
./configure \
--without-magick-plus-plus \
--without-perl \
--disable-openmp \
--with-gvc=no \
--with-fontconfig=yes \
--with-freetype=yes \
--with-gslib \
--disable-docs && \
--without-magick-plus-plus \
--without-perl \
--disable-openmp \
--with-gvc=no \
--with-fontconfig=yes \
--with-freetype=yes \
--with-gslib \
--disable-docs && \
echo "Building ImageMagick" && \
make -j$(nproc) && make install && \
ldconfig /usr/local/lib
Expand Down

0 comments on commit c8c54b5

Please sign in to comment.