December 2019
Intermediate to advanced
314 pages
6h 51m
English
As we have seen, the Quarkus Maven plugin has also produced src/main/docker/Dockerfile.native, which can be used as a template so that we can run our native executable in a container. Here's the content of this file:
FROM registry.access.redhat.com/ubi8/ubi-minimalWORKDIR /work/COPY target/*-runner /work/applicationRUN chmod 775 /workEXPOSE 8080CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]
Since there's no need to use a JDK layer to start our application, the base layer for our container will be a stripped-down RHEL image known as ubi-minimal.
Read now
Unlock full access