Jib does not generate Dockerfile
or make any use of Docker during image building. You don't need to install Docker to use Jib.
For a normal project, if a Dockefile
existed, some part of it would roughly look like this. However, do note that the Dockerfile
in the link is mostly for informational purposes; almost all the time, there cannot be a Dockerfile
that can accurately reproduce the image generated by Jib.
Related, note that the way Jib works is fundamentally different than Docker's:
the way Jib builds an image is fundamentally different from how the Docker CLI builds an image using Dockerfile
(reproducible vs. non-reproducible, declarative vs. imperative, Docker and Dockerfile-less build vs. requiring Docker daemon and client, requiring root-privilege vs. not). Jib is in a very different realm ...
UPDATE: if you want to examine the built image, check out dive.