Skip to content

Commit

Permalink
Merge pull request #117 from Central-MakeUs/116-dockerfile-멀티스테이징으로-분리
Browse files Browse the repository at this point in the history
Refactor(#116): Dockerfile 빌드/실행 스테이지 분리
  • Loading branch information
tmddus2 committed Sep 6, 2024
2 parents 3038e50 + 3753413 commit 8c26bc7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions purithm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
FROM openjdk:17
VOLUME /tmp
# Build Stage
FROM openjdk:17 AS build
WORKDIR /app
COPY /build/libs/*SNAPSHOT.jar app.jar

# Run Stage
FROM openjdk:17-jdk-slim
WORKDIR /app
COPY --from=build /app/app.jar app.jar
VOLUME /tmp
ENTRYPOINT ["java","-jar","/app.jar"]

0 comments on commit 8c26bc7

Please sign in to comment.