Skip to content

Commit

Permalink
fix: Dockerfile에 시간 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
mingeun.kim committed Dec 24, 2024
1 parent 0c88571 commit ae27d77
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
# 애플리케이션 실행
ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "-jar", "app.jar"]

0 comments on commit ae27d77

Please sign in to comment.