kaniko icon indicating copy to clipboard operation
kaniko copied to clipboard

No caching for dynamically generated Dockerfile

Open bayerlse opened this issue 2 years ago • 0 comments

Hey there 👋

I'm having following issue:

Actual behavior When dynamically generating a Dockerfile within the deployment process (which is our default behaviour in our deployment pipeline), kaniko doesn't match the cache layer (because of mtime, i guess)

Expected behavior If the dockerfile content is not changed within the generated Dockerfile, cache should be used.

Is there any possibility to be able to cache generated Dockerfiles?

Thanks in advance!

Additional Information

  • Version used: 1.8.1
Description Yes/No
Please check if this a new feature you are proposing
  • - [ ]
Please check if the build works in docker but not in kaniko
  • - [x]
Please check if this error is seen when you use --cache flag
  • - [x]
Please check if your dockerfile is a multistage dockerfile
  • - [ ]

bayerlse avatar Jul 15 '22 12:07 bayerlse