From ae27d77668d66b1d8f5c3eeadf150ea6cf66bba7 Mon Sep 17 00:00:00 2001 From: "mingeun.kim" Date: Tue, 24 Dec 2024 14:39:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Dockerfile=EC=97=90=20=EC=8B=9C=EA=B0=84?= =?UTF-8?q?=20=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 574cdf9..a421af7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,20 @@ FROM openjdk:17-jdk-slim +# 한국 시간대 설정 +ENV TZ=Asia/Seoul +RUN apt-get update && apt-get install -y tzdata && \ + ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime && \ + dpkg-reconfigure -f noninteractive tzdata + WORKDIR /app +# 실행 환경 설정 (prod) +ENV SPRING_PROFILES_ACTIVE=prod + +# 애플리케이션 JAR 복사 COPY build/libs/*.jar app.jar EXPOSE 8080 -ENTRYPOINT ["java", "-jar", "app.jar"] \ No newline at end of file +# 애플리케이션 실행 +ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "-jar", "app.jar"] \ No newline at end of file