From 4f9e39284368922173f16d1e7ee87b416cc45ce6 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 15 Jan 2023 19:48:34 +0100 Subject: [PATCH] chore: Added a Docker-Build --- .dockerignore | 2 ++ .maven-dockerexclude | 1 + .maven-dockerinclude | 1 + Dockerfile | 5 +++++ pom.xml | 21 +++++++++++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 .dockerignore create mode 100644 .maven-dockerexclude create mode 100644 .maven-dockerinclude create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..1ad99637 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +* +!target/*.jar diff --git a/.maven-dockerexclude b/.maven-dockerexclude new file mode 100644 index 00000000..72e8ffc0 --- /dev/null +++ b/.maven-dockerexclude @@ -0,0 +1 @@ +* diff --git a/.maven-dockerinclude b/.maven-dockerinclude new file mode 100644 index 00000000..fd6cecd2 --- /dev/null +++ b/.maven-dockerinclude @@ -0,0 +1 @@ +target/*.jar diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..503f939e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM eclipse-temurin:17-jre +VOLUME /tmp +COPY target/*.jar /opt/app.jar +ENTRYPOINT [ "java", "-jar", "/opt/app.jar" ] +CMD [] diff --git a/pom.xml b/pom.xml index b5b0e81a..2819be45 100644 --- a/pom.xml +++ b/pom.xml @@ -112,6 +112,27 @@ maven-failsafe-plugin + + io.fabric8 + docker-maven-plugin + 0.33.0 + + + + juplo/%a:%v + + + + + + build + package + + build + + + + -- 2.20.1