From 5034f4f1e32e15311d99d71e994f7f8c479c48eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?toni=20=28=EC=9D=B4=EC=86=8C=EC=9D=80=29?= <144209738+saokiritoni@users.noreply.github.com> Date: Fri, 29 Nov 2024 16:33:15 +0900 Subject: [PATCH] Fix: Dockerfile timezone --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ec050a2..623249b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,8 @@ FROM bellsoft/liberica-openjdk-alpine:17 +ENV TZ=Asia/Seoul +RUN apk add --no-cache tzdata \ + && cp /usr/share/zoneinfo/${TZ} /etc/localtime \ + && echo "${TZ}" > /etc/timezone ARG JAR_FILE=build/libs/osori-0.0.1-SNAPSHOT.jar COPY ${JAR_FILE} app.jar -ENTRYPOINT ["java", "-jar", "/app.jar"] +ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "-jar", "/app.jar"]