From aa2ad33c1d3e61c4f073a1865debcb3b05e376bc Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 7 Feb 2024 06:15:32 +0100 Subject: [PATCH] fix libreoffice install --- DockerfileBase | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/DockerfileBase b/DockerfileBase index fd34ddf9..44e1a582 100644 --- a/DockerfileBase +++ b/DockerfileBase @@ -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 +