Skip to content

Commit

Permalink
Add docker build phase
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtze committed May 6, 2024
1 parent c5cf7e3 commit 17523dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM openjdk:17
FROM docker.io/library/eclipse-temurin:17-jdk as builder
COPY . .
RUN ./gradlew hermes:bootJar

FROM docker.io/library/eclipse-temurin:17-jdk
WORKDIR /.
COPY hermes/build/libs/hermes-0.0.1-SNAPSHOT.jar ./app.jar
COPY --from=builder /hermes/build/libs/hermes-0.0.1-SNAPSHOT.jar app.jar

ENTRYPOINT ["java", "-jar", "./app.jar"]

0 comments on commit 17523dc

Please sign in to comment.