File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM gradle:8-jdk21 AS build
1+ FROM gradle:8-jdk17 AS build
22WORKDIR /app
33
4+ COPY gradlew ./
5+ COPY gradle ./gradle
6+ RUN chmod +x gradlew
7+
48COPY build.gradle settings.gradle ./
59COPY src ./src
610
7- RUN gradle bootJar --no-daemon
11+ RUN ./gradlew generateProto --no-daemon
12+ RUN ./gradlew bootJar --no-daemon
813
914FROM amazoncorretto:17.0.17-alpine3.22
1015WORKDIR /app
1116
1217ENV TZ=Asia/Seoul
13- RUN apt-get update \
14- && apt-get install -y tzdata \
18+ RUN apk add --no-cache tzdata \
1519 && ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \
16- && echo $TZ > /etc/timezone \
17- && rm -rf /var/lib/apt/lists/*
20+ && echo $TZ > /etc/timezone
1821
19- COPY --from=build /app/build/libs/image-0.0.1-SNAPSHOT. jar .
22+ COPY --from=build /app/build/libs/*. jar app.jar
2023
2124EXPOSE 8082 9090
2225
23- ENTRYPOINT ["java" , "-jar" , "user-0.0.1-SNAPSHOT .jar" ]
26+ ENTRYPOINT ["java" , "-jar" , "app .jar" ]
You can’t perform that action at this time.
0 commit comments