January 2018
Intermediate to advanced
414 pages
10h 29m
English
Now that our microservice is running, we need to create a Docker. To simplify the process, we will just use Dockerfile. To create this file on the top of the Project window, right-click chapter08 and then select New | File and type Dockerfile in the drop-down menu. In the next window, click OK and the file will be created.
Now, we can add this to our Dockerfile:
FROM openjdk:8-jdk-alpineADD target/*.jar app.jarENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar", "app.jar"]
Read now
Unlock full access