aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-07-11 08:44:51 +0000
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-07-11 08:44:51 +0000
commitb146259516cc90cc9084bdf2f69c358b896cfdf7 (patch)
treecfbe215be6415cd2ffb0f03d23eaae26b3886bf1 /Dockerfile
parent24a8c0fc70f6493bd7f07f12c723b7e2acf3f558 (diff)
history repo code is missing
Issue-ID: PORTALNG-8 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de> Change-Id: I01f1789eb840661115bfd806a0622d02666100c0
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" ]