2020-09-09 20:59:34 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
ENV UNO_URL https://raw.githubusercontent.com/unoconv/unoconv/0.9.0/unoconv
|
|
|
|
|
|
|
|
LABEL maintainer="eikek0 <eike@docspell.org>"
|
|
|
|
|
|
|
|
RUN apk add --no-cache openjdk11-jre \
|
|
|
|
unzip \
|
|
|
|
bash \
|
|
|
|
curl \
|
|
|
|
ghostscript \
|
|
|
|
tesseract-ocr \
|
|
|
|
tesseract-ocr-data-deu \
|
|
|
|
unpaper \
|
|
|
|
wkhtmltopdf \
|
|
|
|
libreoffice \
|
|
|
|
ttf-droid-nonlatin \
|
|
|
|
ttf-droid \
|
|
|
|
ttf-dejavu \
|
|
|
|
ttf-freefont \
|
|
|
|
ttf-liberation \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt-dev \
|
|
|
|
pngquant \
|
|
|
|
zlib-dev \
|
|
|
|
g++ \
|
|
|
|
qpdf \
|
|
|
|
py3-pip \
|
|
|
|
python3-dev \
|
|
|
|
libffi-dev\
|
|
|
|
qpdf-dev \
|
|
|
|
openssl-dev \
|
|
|
|
ocrmypdf \
|
|
|
|
&& pip3 install --upgrade pip \
|
|
|
|
&& pip3 install ocrmypdf \
|
|
|
|
&& curl -Ls $UNO_URL -o /usr/local/bin/unoconv \
|
|
|
|
&& chmod +x /usr/local/bin/unoconv \
|
|
|
|
&& apk del curl unzip libxml2-dev libxslt-dev zlib-dev g++ python3-dev py3-pip libffi-dev qpdf-dev openssl-dev
|
2020-09-26 23:20:00 +00:00
|
|
|
|
|
|
|
# Required for unoconv
|
|
|
|
RUN ln -s /usr/bin/python3 /usr/bin/python
|