From 5bcaf97ebaee7b1c9bfb20d1a256c832db32d321 Mon Sep 17 00:00:00 2001 From: Sven Carstensen Date: Thu, 16 Jul 2026 14:08:24 +0200 Subject: [PATCH] =?UTF-8?q?Dockerfile:=20Microsoft=20Core=20Fonts=20und=20?= =?UTF-8?q?DejaVu=20f=C3=BCr=20den=20PDF-Renderer=20installieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index d9d8865..3ad553a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,14 @@ ENV TZ=Europe/Berlin ENV LC_TIME=de_DE.UTF-8 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +# Schriften für den PDF-Renderer: Microsoft Core Fonts (Arial, Times New Roman, +# Courier New, Verdana) sowie DejaVu als Fallback. Die EULA der MS-Fonts wird +# vorab bestätigt; der Installer lädt die Fonts beim Image-Build herunter. +RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections \ + && apt-get update \ + && apt-get install -y --no-install-recommends fontconfig fonts-dejavu-core ttf-mscorefonts-installer \ + && rm -rf /var/lib/apt/lists/* + COPY ${JAR_FILE} app.jar EXPOSE 8083 ENTRYPOINT ["java", "-jar", "/app.jar", "--spring.profiles.active=production"]