forked from ahmetcetin/node-ffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
59 lines (52 loc) · 1.62 KB
/
Copy pathDockerfile
File metadata and controls
59 lines (52 loc) · 1.62 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM node:24-trixie
RUN apt-get update && apt-get install -yq --no-install-recommends \
build-essential \
curl \
expat \
autoconf \
bash \
libkrb5-dev \
libcairo2-dev \
git \
apt-transport-https \
wget \
gnupg \
ffmpeg \
webp
# Download and extract ImageMagick to a fixed directory name
RUN wget https://imagemagick.org/archive/ImageMagick.tar.xz && \
mkdir ImageMagick && \
tar --strip-components=1 -C ImageMagick -axvf ImageMagick.tar.xz && \
rm ImageMagick.tar.xz
WORKDIR /ImageMagick
RUN ./configure --with-modules && \
make install && \
ldconfig /usr/local/lib
WORKDIR /
# Download and extract GraphicsMagick to a fixed directory name
RUN wget ftp://ftp.icm.edu.pl/pub/unix/graphics/GraphicsMagick/GraphicsMagick-LATEST.tar.gz && \
mkdir GraphicsMagick && \
tar --strip-components=1 -C GraphicsMagick -xzvf GraphicsMagick-LATEST.tar.gz && \
rm GraphicsMagick-LATEST.tar.gz
WORKDIR /GraphicsMagick
RUN ./configure && \
make install
WORKDIR /
RUN \
DIR=/tmp/libraw && \
mkdir -p ${DIR} && \
cd ${DIR} && \
curl -o LibRaw-0.21.2.tar.gz https://www.libraw.org/data/LibRaw-0.21.2.tar.gz && \
tar xzvf LibRaw-0.21.2.tar.gz && \
cd LibRaw-0.21.2 && \
autoreconf -fiv && \
./configure --prefix=/usr \
--enable-jpeg \
--enable-jasper \
--enable-lcms \
--disable-static \
--docdir=/usr/share/doc/libraw-0.21.2 && \
make && \
make install && \
ldconfig && \
rm -rf ${DIR}