aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 1245a2d..7b4d2bc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,5 @@
FROM maven:3-jdk-8
+RUN apt-get update && apt-get install -y sendmail
WORKDIR /opt/sch
ADD . /opt/sch
@@ -7,4 +8,6 @@ RUN mvn clean package
# TODO: This is bogus. This is simply to be used for Registrator registration.
EXPOSE 65000
-CMD ["java", "-jar", "/opt/sch/target/dcae-service-change-handler.jar", "prod", "http://consul:8500/v1/kv/service-change-handler?raw=true"]
+COPY startSCH.sh /opt/sch
+RUN chmod +x /opt/sch/startSCH.sh
+CMD ["/opt/sch/startSCH.sh"]