1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-09-30 00:20:13 +02:00
Stirling-PDF/DockerfileBase

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
683 B
Plaintext
Raw Normal View History

2023-05-01 22:57:48 +02:00
# Main stage
FROM alpine:3.19.0
2023-12-10 23:02:30 +01:00
2023-12-11 00:06:35 +01:00
# JDK for app
RUN apk add --no-cache \
ca-certificates \
tzdata \
tini \
bash \
curl \
openjdk17-jre \
2023-12-11 00:06:35 +01:00
# Doc conversion
libreoffice \
2023-12-11 00:06:35 +01:00
# OCR MY PDF (unpaper for descew and other advanced featues)
2023-12-10 23:02:30 +01:00
ocrmypdf \
tesseract-ocr-data-eng \
# CV
py3-opencv \
# python3/pip
python3 && \
wget https://bootstrap.pypa.io/get-pip.py -qO - | python3 - --break-system-packages --no-cache-dir --upgrade && \
# uno unoconv and HTML
pip install --break-system-packages --no-cache-dir --upgrade unoconv WeasyPrint && \
mv /usr/share/tessdata /usr/share/tessdata-original