From 8f85e63eaff252a7fa7f5db8d01adc5458652291 Mon Sep 17 00:00:00 2001 From: MinhoJJang Date: Sat, 17 Aug 2024 12:41:16 +0900 Subject: [PATCH] fix: set timezone KST --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index d2941784..84e1376b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,14 @@ WORKDIR /app # Set node environment to production ENV NODE_ENV=production +# Set timezone to KST +ENV TZ=Asia/Seoul + +# Install tzdata package and set timezone +RUN apk add --no-cache tzdata && \ + cp /usr/share/zoneinfo/$TZ /etc/localtime && \ + echo $TZ > /etc/timezone + # Add a non-root user RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs