Using mvn spring-boot:build-image it is possible to create a Docker image with a Java application inside. Is it possible to configure the respective Maven plugin so that the resulting Docker image includes not only the Java application, but the Java runtime as well? If yes, how? Source: Docker..
I want to be able to deploy my Spring Boot application to DockerHub. I followed this tutorial, created Dockerfile in the root project directory and adapted my pom.xml file. Dockerfile looks like this: FROM openjdk:8-jre-alpine3.9 COPY target/myproduct-1.0-SNAPSHOT.jar /myproduct.jar CMD ["java","-jar","/myproduct.jar"] EXPOSE 8080/tcp myproduct.jar is the JAR file of my application. pom.xml looks like this: <?xml ..