mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2024-11-17 12:40:11 +01:00
29 lines
1012 B
Plaintext
29 lines
1012 B
Plaintext
# Main stage
|
|
FROM alpine:3.19.0
|
|
|
|
# JDK for app
|
|
RUN 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 && \
|
|
apk add --no-cache \
|
|
ca-certificates \
|
|
tzdata \
|
|
tini \
|
|
bash \
|
|
curl \
|
|
openjdk17-jre \
|
|
# Doc conversion
|
|
libreoffice@testing \
|
|
# OCR MY PDF (unpaper for descew and other advanced featues)
|
|
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
|
|
|