From 9793304ead906d99bab8679413b42d9dc30c7a37 Mon Sep 17 00:00:00 2001 From: anhefti Date: Mon, 4 Feb 2019 21:52:38 +0100 Subject: [PATCH] docker --- docker/demo/DOCKERFILE | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/demo/DOCKERFILE b/docker/demo/DOCKERFILE index 8788d889..795a0a2f 100644 --- a/docker/demo/DOCKERFILE +++ b/docker/demo/DOCKERFILE @@ -10,6 +10,9 @@ RUN mvn clean install -e -P Demo -DskipTests FROM openjdk:8-jre-alpine WORKDIR /demo COPY --from=1 /demo/target/seb-server-0.1.0-SNAPSHOT.jar /demo -EXPOSE 8080 + ENTRYPOINT ["sh", "-c"] -CMD ["java -jar seb-server-0.1.0-SNAPSHOT.jar --spring.config.location=classpath:/config/,file:/demo/externalResources/ --spring.profiles.active=demo"] \ No newline at end of file + +CMD ["java -jar seb-server-0.1.0-SNAPSHOT.jar --spring.config.location=classpath:/config/,file:/demo/externalResources/ --spring.profiles.active=demo"] + +EXPOSE 8080 \ No newline at end of file