-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mingeun.kim
committed
Dec 24, 2024
1 parent
0c88571
commit ae27d77
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |