From ccc87b8a84e9a3ee214aca84bf42d51226c9d1a9 Mon Sep 17 00:00:00 2001 From: choidabom Date: Tue, 1 Oct 2024 22:35:23 +0900 Subject: [PATCH] Add necessary setting in Dockerfile --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 990012fa..5d2b526c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,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