From fd620433148687910c156d9e3ee209e71e8145d7 Mon Sep 17 00:00:00 2001 From: LeeJongBeom <52884648+devleejb@users.noreply.github.com> Date: Thu, 25 Jul 2024 22:54:47 +0900 Subject: [PATCH] Add Korean font for Puppeteer in Docker image (#252) --- backend/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/Dockerfile b/backend/Dockerfile index 39b2bf0b..06c10fd8 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -51,6 +51,12 @@ RUN apk add --no-cache \ ca-certificates \ ttf-freefont +# Download Korean font for Puppeteer +RUN mkdir /usr/share/fonts/nanumfont && \ + wget http://cdn.naver.com/naver/NanumFont/fontfiles/NanumFont_TTF_ALL.zip && \ + unzip NanumFont_TTF_ALL.zip -d /usr/share/fonts/nanumfont && \ + fc-cache -f -v + # Set the environment variables ENV NODE_ENV production ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true