aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..a563a99
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,11 @@
+FROM eclipse-temurin:17 as builder
+COPY . ./history
+WORKDIR /history
+
+RUN ./gradlew build
+
+FROM eclipse-temurin:17-jre-alpine
+ARG JAR_FILE=/history/app/build/libs/app.jar
+COPY --from=builder ${JAR_FILE} app.jar
+EXPOSE 9080
+ENTRYPOINT [ "java","-jar","app.jar" ]