nuget cache in buildkit containers #6054
Unanswered
jeremymartin-snowden
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a microservices .net suite of applications that when building all use essentially the same nuget packages which makes caching preferrable. Each project has a dockerfile which I use the following
My understanding is that each dockerfile in the docker-bake.hcl if setup the same way would then use the same cache coming from the buildkit container. I am wondering if my understanding is correct here?
In addition if I was to push the resultant buildkit container to my CI/CD my understanding is that --mount=type=cache would be lost once the final image is created. So in a CI/CD environment does that mean every time a dotnet restore is performed the nuget packages would be downloaded?
Many thanks for any help here
Beta Was this translation helpful? Give feedback.
All reactions