From f47ed3b42e32468adf860ce5616cfb57992d9412 Mon Sep 17 00:00:00 2001 From: yubiuser Date: Sun, 22 Sep 2024 22:25:38 +0200 Subject: [PATCH] Fix startup errors on ultra-lite image (#1950) * Add installFonts.sh to ultra-lite image Signed-off-by: yubiuser * Create /usr/share/fonts/opentype/noto on ultra-lite images Signed-off-by: yubiuser --------- Signed-off-by: yubiuser --- Dockerfile-ultra-lite | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile-ultra-lite b/Dockerfile-ultra-lite index 6fcb1f50..c1bdd80d 100644 --- a/Dockerfile-ultra-lite +++ b/Dockerfile-ultra-lite @@ -15,6 +15,7 @@ ENV DOCKER_ENABLE_SECURITY=false \ # Copy necessary files COPY scripts/download-security-jar.sh /scripts/download-security-jar.sh COPY scripts/init-without-ocr.sh /scripts/init-without-ocr.sh +COPY scripts/installFonts.sh /scripts/installFonts.sh COPY pipeline /pipeline COPY build/libs/*.jar app.jar @@ -33,11 +34,11 @@ RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/main" | tee -a /et su-exec \ openjdk21-jre && \ # User permissions - mkdir /configs /logs /customFiles && \ + mkdir -p /configs /logs /customFiles /usr/share/fonts/opentype/noto && \ chmod +x /scripts/*.sh && \ addgroup -S stirlingpdfgroup && adduser -S stirlingpdfuser -G stirlingpdfgroup && \ chown -R stirlingpdfuser:stirlingpdfgroup $HOME /scripts /configs /customFiles /pipeline && \ - chown stirlingpdfuser:stirlingpdfgroup /app.jar + chown stirlingpdfuser:stirlingpdfgroup /app.jar # Set environment variables ENV ENDPOINTS_GROUPS_TO_REMOVE=CLI