aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-07-25 11:29:36 +0000
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-07-25 12:09:50 +0000
commit61040e8e7b631b4ddd800ee0eb1622df1ef157d3 (patch)
treec51c51a82649a8cf43edeeacac1f4893a0789e8d
parent064169dea52b0441b5fe4360f5c6e56da6b0b2a6 (diff)
Fix preferences docker-verify pipeline step
Issue-ID: PORTALNG-27 Change-Id: Ifbea43e6f7e44f600b6756e2c47b6e07a0a081ba Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
-rw-r--r--.dockerignore4
-rw-r--r--Dockerfile11
2 files changed, 8 insertions, 7 deletions
diff --git a/.dockerignore b/.dockerignore
index c8de995..e69de29 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,4 +0,0 @@
-# Ignore everything
-*
-# ... but the build jar
-!/app/build/libs \ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index 08ba08e..45036bb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,10 @@
-FROM onap-repo/openjdk:17
-ARG JAR_FILE=/app/build/libs/app-*.jar
-COPY ${JAR_FILE} app.jar
+FROM eclipse-temurin:17 as builder
+COPY . ./preferences
+WORKDIR /preferences
+RUN ./gradlew assemble
+
+FROM eclipse-temurin:17-jre-alpine
+ARG JAR_FILE=/preferences/app/build/libs/app-*.jar
+COPY --from=builder ${JAR_FILE} app.jar
EXPOSE 9080
ENTRYPOINT [ "java","-jar","app.jar" ] \ No newline at end of file