streams - Übungen - Microservices - Schritt 01
authorKai Moritz <kai@juplo.de>
Sun, 7 Jun 2020 09:27:21 +0000 (11:27 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 7 Jun 2020 09:47:34 +0000 (11:47 +0200)
--
Dockerfile mit ENTRYPOINT und CMD

take-order/Dockerfile

index 6f51b96..cd7c3ad 100644 (file)
@@ -1,4 +1,5 @@
 FROM openjdk:8-jre-slim
 COPY target/take-order-0-SNAPSHOT.jar /opt/
 EXPOSE 8080
-CMD ["java", "-jar", "/opt/take-order-0-SNAPSHOT.jar"]
+ENTRYPOINT [ "java", "-jar", "/opt/take-order-0-SNAPSHOT.jar" ]
+CMD []