From 81767856d6bfa045022a889675ca2d11f2d93df7 Mon Sep 17 00:00:00 2001 From: "piotr.suwala" Date: Wed, 17 Apr 2024 18:46:24 +0200 Subject: [PATCH] issue-10: Dockerfile --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ee6817a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM gradle:7-jdk17 AS build +COPY --chown=gradle:gradle . /home/gradle/src +WORKDIR /home/gradle/src +RUN gradle bootJar --no-daemon + +FROM openjdk:17 +RUN mkdir /app +COPY --from=build /home/gradle/src/build/libs/*.jar /app/app.jar +ENTRYPOINT ["java","-jar","/app/app.jar"]