diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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"] |