-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) ยท 843 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) ยท 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# open jdk 17 ๋ฒ์ ์ ํ๊ฒฝ์ ๊ตฌ์ฑ
FROM openjdk:17-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/frientree-0.0.1-SNAPSHOT.jar
# JAR_FILE์ agaproject.jar๋ก ๋ณต์ฌ
COPY ${JAR_FILE} frientree.jar
# ์ด์ ๋ฐ ๊ฐ๋ฐ์์ ์ฌ์ฉ๋๋ ํ๊ฒฝ ์ค์ ์ ๋ถ๋ฆฌ
# -Duser.timezone=Asia/Seoul JVM ์ต์
์ ์ฌ์ฉํ์ฌ ์ ํ๋ฆฌ์ผ์ด์
์์ค์์๋ ํ์์กด์ ์ค์
ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=development", "-Duser.timezone=Asia/Seoul", "/frientree.jar"]