update dockerfile

This commit is contained in:
jonaswinkler 2021-08-18 18:21:31 +02:00
parent dbe820323e
commit 0b90e69119

View File

@ -8,7 +8,7 @@ RUN git clone https://github.com/agl/jbig2enc .
RUN ./autogen.sh RUN ./autogen.sh
RUN ./configure && make RUN ./configure && make
FROM python:3.7-slim FROM python:3.9-slim-bullseye
# Binary dependencies # Binary dependencies
RUN apt-get update \ RUN apt-get update \
@ -33,16 +33,11 @@ RUN apt-get update \
zlib1g \ zlib1g \
ghostscript \ ghostscript \
icc-profiles-free \ icc-profiles-free \
&& echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list.d/bullseye.list \ # Mime type detection
&& apt-get update \
&& apt-get -y --no-install-recommends install \
# fixes sudo / gosu issues
libseccomp2 \
# Mime type detection
file \ file \
libmagic-dev \ libmagic-dev \
media-types \ media-types \
# OCRmyPDF dependencies # OCRmyPDF dependencies
liblept5 \ liblept5 \
qpdf \ qpdf \
tesseract-ocr \ tesseract-ocr \