-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
19 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# open jdk 21 λ²μ μ νκ²½μ κ΅¬μ± | ||
FROM openjdk:21-alpine | ||
|
||
# tzdata ν¨ν€μ§ μ€μΉ λ° νμμ‘΄ μ€μ | ||
RUN apk add --no-cache tzdata \ | ||
&& cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime \ | ||
&& echo "Asia/Seoul" > /etc/timezone \ | ||
&& apk del tzdata | ||
|
||
# buildκ° λλ μμ μ JAR_FILEμ΄λΌλ λ³μ λͺ μ build/libs/*.jar μ μΈ | ||
# build/libs - gradleλ‘ λΉλνμ λ jar νμΌμ΄ μμ±λλ κ²½λ‘ | ||
ARG JAR_FILE=build/libs/ulvan-0.0.1-SNAPSHOT.jar | ||
|
||
# JAR_FILEμ agaproject.jarλ‘ λ³΅μ¬ | ||
COPY ${JAR_FILE} ulvan.jar | ||
|
||
# μ΄μ λ° κ°λ°μμ μ¬μ©λλ νκ²½ μ€μ μ λΆλ¦¬ | ||
# -Duser.timezone=Asia/Seoul JVM μ΅μ μ μ¬μ©νμ¬ μ ν리μΌμ΄μ μμ€μμλ νμμ‘΄μ μ€μ | ||
ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=dev", "-Duser.timezone=Asia/Seoul", "/finfarm.jar"] |