From: Kai Moritz Date: Sun, 13 Jun 2021 09:26:00 +0000 (+0200) Subject: Added config/assets to build a docker-image X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=4731ed1586d9663b0ab509b673e8324f9b61c5a6;p=demos%2Fkafka%2Fdemos-kafka-payment-system-transfer Added config/assets to build a docker-image --- diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..1ad9963 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +* +!target/*.jar diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..50394b6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM openjdk:11-jre-slim +COPY target/transfer-1.0.0.jar /opt/transfer.jar +EXPOSE 8080 +CMD ["java", "-jar", "/opt/transfer.jar"] diff --git a/pom.xml b/pom.xml index 8c2c36b..df51758 100644 --- a/pom.xml +++ b/pom.xml @@ -21,6 +21,7 @@ 11 6.2.0 2.8.0 + 0.33.0 @@ -81,6 +82,27 @@ + + io.fabric8 + docker-maven-plugin + ${docker-maven-plugin.version} + + + + juplo/payment-service-demo--%a:%v + + + + + + build + package + + build + + + +