-
Notifications
You must be signed in to change notification settings - Fork 184
/
Dockerfile
45 lines (39 loc) · 1.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM golang:1.20
# Ignore APT warnings about not having a TTY
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install -y \
wget build-essential \
pkg-config \
--no-install-recommends \
&& apt-get -q -y install \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libgif-dev \
libx11-dev \
fontconfig fontconfig-config libfontconfig1-dev \
ghostscript gsfonts gsfonts-x11 \
libfreetype6-dev \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ARG IMAGEMAGICK_PROJECT=ImageMagick6
ARG IMAGEMAGICK_VERSION=6.9.10-11
ENV IMAGEMAGICK_VERSION=$IMAGEMAGICK_VERSION
RUN cd && \
wget https://github.com/ImageMagick/${IMAGEMAGICK_PROJECT}/archive/${IMAGEMAGICK_VERSION}.tar.gz && \
tar xvzf ${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 && \
make -j$(nproc) && make install && \
ldconfig /usr/local/lib
WORKDIR /go/projects/imagick
CMD go test -v ./imagick