From 62701ba1620fb5e633ec6f86109d8dba77aff9ac Mon Sep 17 00:00:00 2001 From: James Gunn Date: Tue, 5 Dec 2023 18:08:11 +0000 Subject: [PATCH] Restore fonts to Docker image (#947) --- TeachingRecordSystem/Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/TeachingRecordSystem/Dockerfile b/TeachingRecordSystem/Dockerfile index f1ed06080..f9da5b74a 100644 --- a/TeachingRecordSystem/Dockerfile +++ b/TeachingRecordSystem/Dockerfile @@ -19,9 +19,14 @@ RUN apk add --no-cache \ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false # Install Postgres client -RUN apk add postgresql14-client +RUN apk --no-cache add postgresql14-client # Fix for invoking trscli -RUN apk add libc6-compat +RUN apk --no-cache add libc6-compat + +# Install fonts for PDF generation +RUN apk --no-cache add msttcorefonts-installer fontconfig && \ + update-ms-fonts && \ + fc-cache -f ENV PATH="${PATH}:/Apps/TrsCli"