-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (30 loc) · 899 Bytes
/
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
FROM alpine as builder
ARG MOZJPEG_VERSION='v4.1.1'
RUN apk add --no-cache \
autoconf automake libtool make tiff jpeg zlib zlib-dev pkgconf nasm file gcc musl-dev curl cmake ca-certificates
RUN cd /tmp && \
curl -L -o mozjpeg.tgz "https://github.com/mozilla/mozjpeg/archive/refs/tags/${MOZJPEG_VERSION}.tar.gz" && \
tar xf mozjpeg.tgz && \
export MOZJPEG_PATH=`realpath /tmp/mozjpeg-*` && \
mv $MOZJPEG_PATH /tmp/mozjpeg && \
cd /tmp/mozjpeg && \
cmake -G"Unix Makefiles" -DENABLE_SHARED=0 -DENABLE_STATIC=1 -DPNG_SUPPORTED=NO . && \
make
FROM alpine
COPY --from=builder /tmp/mozjpeg/cjpeg-static /usr/local/bin/mozjpeg
RUN apk add --no-cache \
font-noto-arabic \
font-noto \
exiftool \
ca-certificates \
imagemagick \
ffmpeg \
file \
fribidi \
libheif-tools \
shared-mime-info \
perl-archive-zip \
perl-file-mimeinfo \
gifsicle \
pngquant \
curl