diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8c64e4c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM openjdk:8-jre +MAINTAINER Divyanshu kumar + +ENTRYPOINT ["/usr/bin/java", "-jar", "/usr/share/myservice/demo.jar"] + +# Add Maven dependencies (not shaded into the artifact; Docker-cached) +#ADD target/lib /usr/share/myservice/lib +# Add the service itself +ARG JAR_FILE=demo-0.0.1-SNAPSHOT.jar + +ADD target/${JAR_FILE} /usr/share/myservice/demo.jar + +EXPOSE 8080 \ No newline at end of file diff --git a/README.md b/README.md index 678cd00..d147007 100644 --- a/README.md +++ b/README.md @@ -1,4 +1 @@ -[![Build Status](https://semaphoreci.com/api/v1/monuk18/demo/branches/master/badge.svg)](https://semaphoreci.com/monuk18/demo) - -# Employee REST sevice -springboot Employee REST +[![Build Status](https://semaphoreci.com/api/v1/monuk18/demo/branches/test/badge.svg)](https://semaphoreci.com/monuk18/demo) diff --git a/pom.xml b/pom.xml index 54593c7..caafa03 100644 --- a/pom.xml +++ b/pom.xml @@ -85,6 +85,28 @@ org.springframework.boot spring-boot-maven-plugin + + com.spotify + dockerfile-maven-plugin + + + divyankumar/spring-boot-demo + ${project.version} + + ${project.build.finalName}.jar + + + + + default + install + + build + push + + + +