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"]