-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (25 loc) Β· 973 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# λ컀 νλΈμμ μ΄λ―Έμ§λ₯Ό κ°μ Έμμ μ΄λ―Έμ§λ₯Ό μμ
νλ€
# FROM (μ΄λ―Έμ§ μ΄λ¦:λ²μ )
FROM openjdk:11
# 컨ν
μ΄λ μ€ν μ μλν λͺ
λ Ή
# RUN (λͺ
λ Ή)
# νμμ‘΄ μ€μ (μ€μ μ νμ§ μμΌλ©΄ μκ° μ μ₯μ λ€λ₯Έ μκ°λλ‘ μ μ₯λ¨)
RUN ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
RUN echo Asia/Seoul > /etc/timezone
# 컨ν
μ΄λ λ΄ μμ
κ²½λ‘
# WORKDIR (κ²½λ‘)
WORKDIR /app
# μμ
νμΌμ λ³μν νκΈ°
# ARG (λ³μλͺ
)=(νμΌλͺ
)
ARG JAR_FILE=build/libs/*.jar
ARG FIREBASE_JSON=firebase.json
ARG ACTIVE_PROFILE=prod
ENV profile=$ACTIVE_PROFILE
RUN echo $profile
# μμ
νμΌμ 컨ν
μ΄λλ‘ λ³΅μ¬
# COPY (νμΌλͺ
λλ ${λ³μλͺ
}) (볡μ¬ν νμΌλͺ
)
COPY ${JAR_FILE} app.jar
COPY ${FIREBASE_JSON} firebase.json
# 컨ν
μ΄λ μμ μ λ΄λ¦΄ λͺ
λ Ή (CMDμ ENTRYPOINT μ°¨μ΄ νμΈ)
# ENTRYPOINT [(λͺ
λ Ή),(맀κ°λ³μ),(맀κ°λ³μ),(...)]
ENTRYPOINT ["java","-jar","app.jar"]