Author : Mentiflectax

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 ..

Read more