diff --git a/pom.xml b/pom.xml
index b04e3f065..19cf5c72e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,4 +29,31 @@
+
+
+
+ com.spotify
+ docker-maven-plugin
+ 0.4.13
+
+ ${docker.image.prefix}/${project.artifactId}
+ src/main/docker
+
+
+ /
+ ${project.build.directory}
+ ${project.build.finalName}.war
+
+
+ true
+
+ ${project.version}
+ latest
+
+ true
+
+
+
+
+
diff --git a/springboot-petclinic-server/pom.xml b/springboot-petclinic-server/pom.xml
index e0f7186e2..3466edf50 100644
--- a/springboot-petclinic-server/pom.xml
+++ b/springboot-petclinic-server/pom.xml
@@ -13,6 +13,8 @@
1.7
+
+ arey
@@ -121,6 +123,29 @@
+
+
+ com.spotify
+ docker-maven-plugin
+ 0.4.13
+
+ ${docker.image.prefix}/springboot-petclinic
+ src/main/docker
+
+
+ /
+ ${project.build.directory}
+ ${project.build.finalName}.jar
+
+
+ true
+
+ ${project.version}
+ latest
+
+ true
+
+
diff --git a/springboot-petclinic-server/src/main/docker/Dockerfile b/springboot-petclinic-server/src/main/docker/Dockerfile
new file mode 100644
index 000000000..e74578578
--- /dev/null
+++ b/springboot-petclinic-server/src/main/docker/Dockerfile
@@ -0,0 +1,8 @@
+FROM openjdk:alpine
+MAINTAINER Antoine Rey
+# Spring Boot application creates working directories for Tomcat by default
+VOLUME /tmp
+ADD petclinic.jar petclinic.jar
+RUN sh -c 'touch /petclinic.jar'
+# To reduce Tomcat startup time we added a system property pointing to "/dev/urandom" as a source of entropy.
+ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/petclinic.jar"]