Skip to content

Commit

Permalink
update: Dockerfile 단축
Browse files Browse the repository at this point in the history
배포 시 2번 Gradle 빌드를 시도하는 것을 수정하였습니다
  • Loading branch information
snowykte0426 committed Feb 8, 2025
1 parent edcc1e6 commit 04b1776
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
FROM gradle:8.12.1-jdk21 AS build
WORKDIR /app
COPY --chown=gradle:gradle . .
RUN chmod +x gradlew
RUN ./gradlew build
FROM openjdk:21-jdk-slim AS runtime
WORKDIR /app
RUN apt-get update && apt-get install -y tzdata && rm -rf /var/lib/apt/lists/*
ENV TZ=Asia/Seoul
ENV SPRING_PROFILES_ACTIVE=prod
COPY --from=build /app/build/libs/*.jar app.jar
COPY groom-0.0.1-SNAPSHOT.jar app.jar
ENTRYPOINT ["java", "-jar", "app.jar"]

0 comments on commit 04b1776

Please sign in to comment.