-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (28 loc) ยท 941 Bytes
/
Dockerfile
File metadata and controls
40 lines (28 loc) ยท 941 Bytes
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
31
32
33
34
35
36
37
38
39
40
# ==============================
# Builder Stage
# ==============================
FROM gradle:8.10.2-jdk21 AS builder
WORKDIR /shootpointer
COPY build.gradle settings.gradle ./
COPY gradle gradle
COPY gradlew ./
COPY apps apps
COPY domains domains
RUN chmod +x gradlew
ARG MODULE_NAME=api-server
RUN ./gradlew :apps:${MODULE_NAME}:bootJar --no-daemon -x test
# ==============================
# Runtime Stage
# ==============================
FROM eclipse-temurin:21-jre-alpine
WORKDIR /app
# ---- Timezone ์ค์ ----
RUN apk add --no-cache tzdata \
&& ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime \
&& echo "Asia/Seoul" > /etc/timezone
ENV SPRING_PROFILES_ACTIVE=es,test-real-data,batch,test-highlight-data
ENV TZ=Asia/Seoul
ARG MODULE_NAME=api-server
COPY --from=builder /shootpointer/apps/${MODULE_NAME}/build/libs/*.jar app.jar
# ์คํ
ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "-jar", "/app/app.jar"]