Browse Source

include mozjpeg

main
Markus Bergholz 2 months ago
parent
commit
54f7bb4baf
Signed by: m GPG Key ID: B45724801354B174
1 changed files with 17 additions and 1 deletions
  1. +17
    -1
      roles/containers/files/nextcloud.Dockerfile

+ 17
- 1
roles/containers/files/nextcloud.Dockerfile View File

@ -45,6 +45,21 @@ RUN git clone https://github.com/matiasdelellis/pdlib-min-test-suite.git \
&& cd pdlib-min-test-suite \
&& make
FROM debian:buster as mozjpeg
RUN apt update ; \
apt install -y \
build-essential libboost-all-dev pkg-config \
autoconf automake libtool nasm make cmake flex \
imagemagick optipng advancecomp parallel \
libpng-tools libpng-dev zlib1g-dev wget ;
RUN wget https://github.com/mozilla/mozjpeg/archive/v4.0.3.tar.gz ; \
tar xf v4.0.3.tar.gz ; \
cd /mozjpeg-4.0.3 ; \
cmake . ; \
make
#
# If pass the tests, we are able to create the final image.
#
@ -54,10 +69,11 @@ FROM nextcloud:21.0.0-apache
# Install dependencies to image
RUN apt-get update ; \
apt-get install -y libopenblas-base ffmpeg libmagickcore-6.q16-6-extra
apt-get install -y libopenblas-base ffmpeg libmagickcore-6.q16-6-extra libjpeg62-turbo libpng16-16
# Install dlib and PDlib to image
COPY --from=mozjpeg /mozjpeg-4.0.3/cjpeg /usr/local/bin/cjpeg
COPY --from=builder /usr/local/lib/libdlib.so* /usr/local/lib/
# If is necesary take the php extention folder uncommenting the next line


Loading…
Cancel
Save