lets hope this works

This commit is contained in:
jonaswinkler 2021-04-17 22:29:54 +02:00
parent 56ce278bbd
commit c2d4ca7566

View File

@ -12,16 +12,14 @@ FROM python:3.7-slim
# Binary dependencies # Binary dependencies
RUN apt-get update \ RUN apt-get update \
&& apt-get -y --no-install-recommends install sudo \ && apt-get -y --no-install-recommends install \
&& echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list.d/bullseye.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install \
# Basic dependencies # Basic dependencies
curl \ curl \
gnupg \ gnupg \
imagemagick \ imagemagick \
gettext \ gettext \
tzdata \ tzdata \
sudo \
# fonts for text file thumbnail generation # fonts for text file thumbnail generation
fonts-liberation \ fonts-liberation \
# for Numpy # for Numpy
@ -29,16 +27,21 @@ RUN apt-get update \
libxslt1-dev \ libxslt1-dev \
# thumbnail size reduction # thumbnail size reduction
optipng \ optipng \
libxml2 \
pngquant \
unpaper \
zlib1g \
ghostscript \
icc-profiles-free \
&& echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list.d/bullseye.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install \
# Mime type detection # Mime type detection
file \ file \
libmagic-dev \ libmagic-dev \
media-types \ media-types \
# OCRmyPDF dependencies # OCRmyPDF dependencies
ghostscript \
icc-profiles-free \
liblept5 \ liblept5 \
libxml2 \
pngquant \
qpdf \ qpdf \
tesseract-ocr \ tesseract-ocr \
tesseract-ocr-eng \ tesseract-ocr-eng \
@ -46,8 +49,6 @@ RUN apt-get update \
tesseract-ocr-fra \ tesseract-ocr-fra \
tesseract-ocr-ita \ tesseract-ocr-ita \
tesseract-ocr-spa \ tesseract-ocr-spa \
unpaper \
zlib1g \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# copy jbig2enc # copy jbig2enc