Issue
Jib handles all steps of packaging (handles compilation, verification and building the project) your application into a container. However I want to build the jar separately and and provide this jar as a input to JIB to create a docker image and publish to nexus repository. Is there any way to use JIB only for creating a docker image from the given jar?
Solution
You may want to look into the Jib CLI. The jib cli jar
command is powered by jib-core and lets you build an optimized image from a JAR file. You can find more info on how it works in the FAQ and the README
Answered By - Mridula Peddada