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.

29 lines
1.1 KiB
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 \
2024-01-10 22:56:30 +01:00
openjdk17-jre && \
2023-12-11 00:06:35 +01:00
# Doc conversion
2024-01-10 22:56:30 +01:00
apk add --no-cache libreoffice --repository http://dl-cdn.alpinelinux.org/alpine/edge/community && \
2023-12-11 00:06:35 +01:00
# OCR MY PDF (unpaper for descew and other advanced featues)
2024-01-10 22:56:30 +01:00
apk add --no-cache \
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 && \
2024-01-31 20:59:07 +01:00
mv /usr/share/tessdata /usr/share/tessdata-original && \
echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/main" | tee -a /etc/apk/repositories && \
echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/community" | tee -a /etc/apk/repositories && \
echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" | tee -a /etc/apk/repositories