From: Kai Moritz Date: Sun, 15 Jan 2023 18:48:34 +0000 (+0100) Subject: chore: Added a Docker-Build X-Git-Tag: wip~21 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=9a9cd0afa196c03d596a68474cf1adfdb40e728f;p=demos%2Fkafka%2Fchat chore: Added a Docker-Build --- 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 + + + +