fix libreoffice install

This commit is contained in:
Zoey 2024-02-07 06:15:32 +01:00 committed by GitHub
parent d190ae0cf3
commit aa2ad33c1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,17 +2,19 @@
FROM alpine:3.19.0
# JDK for app
RUN apk add --no-cache \
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 && \
openjdk17-jre \
# Doc conversion
apk add --no-cache libreoffice --repository http://dl-cdn.alpinelinux.org/alpine/edge/community && \
libreoffice@testing \
# OCR MY PDF (unpaper for descew and other advanced featues)
apk add --no-cache \
ocrmypdf \
tesseract-ocr-data-eng \
# CV
@ -22,7 +24,5 @@ RUN apk add --no-cache \
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 && \
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
mv /usr/share/tessdata /usr/share/tessdata-original