-
Notifications
You must be signed in to change notification settings - Fork 51
/
Dockerfile
40 lines (33 loc) · 1.14 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
FROM heroku/heroku:18-build
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
libheif-dev
RUN curl -L https://github.com/strukturag/libde265/releases/download/v1.0.3/libde265-1.0.3.tar.gz | tar zx \
&& cd libde265-1.0.3 \
&& ./autogen.sh \
&& ./configure \
&& make \
&& make install
RUN curl -L https://github.com/strukturag/libheif/releases/download/v1.3.2/libheif-1.3.2.tar.gz | tar zx \
&& cd libheif-1.3.2 \
&& ./autogen.sh \
&& ./configure \
&& make \
&& make install
RUN cd /usr/src/ \
&& wget https://imagemagick.org/download/releases/ImageMagick-7.0.8-53.tar.gz \
&& tar xf ImageMagick-7.0.8-53.tar.gz \
&& cd ImageMagick-7* \
&& ./configure --with-heic=yes --prefix=/usr/src/imagemagick \
&& make \
&& make install
RUN cp /usr/local/lib/libde265.so.0 /usr/src/imagemagick/lib \
&& cp /usr/local/lib/libheif.so.1 /usr/src/imagemagick/lib
# clean the build area ready for packaging
RUN cd /usr/src/imagemagick \
&& strip lib/*.a lib/lib*.so*
RUN cd /usr/src/imagemagick \
&& rm -rf build \
&& mkdir build \
&& tar czf \
/usr/src/imagemagick/build/imagemagick.tar.gz bin include lib