Getting Started

build image service

$ cd product-service
$ mvn 
$ <sudo> docker build -t product-service .

run docker

$<sudo> docker run product-service -d -p 9090:8181

Dockerfile

FROM openjdk:11-jre-slim

WORKDIR .

ADD /target/product-service-0.0.1-SNAPSHOT.jar product-service.jar

EXPOSE 8181

ENTRYPOINT ["java","-jar","product-service.jar"]

Issue spring and java 11:

  1. as jdk.java.net saying: "no longer recommended for use in production", so we should have a plan to use other version
  2. we have a small problem with image size of 11, we are working around any solution to increase size of the image