2

Is it possible to see the dockerfile jib creates behind the scenes ? If yes then where and how can i locate it ?

Context - I am bit familiar with docker file and want to make sure the docker file that gets generated has everything required for my app to run successfully.

user10916892
  • 825
  • 12
  • 33

1 Answers1

2

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.

Chanseok Oh
  • 3,920
  • 4
  • 23
  • 63