Dockerfile rebuilt every debug session AddDockerfile(..).WithLifetime(Persistent) #6928
Unanswered
Simon900225
asked this question in
Q&A
Replies: 1 comment
-
Tested some more. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a project that rarely changes but takes up to 30 seconds to start up. So when I read about WithLifetime(ContainerLifetime.Persistent) it seemed like a perfect fit.
And it partially works as the container isn't killed when I stop the debugger. The issue is that the next time I start the project the Dockerfile is rebuilt. When it's done the name of the container isn't changed (dataclient-4fcad0f2) but the image is updated and the container restarts.
The only documentation I could find was the following:
As I understand it, I haven't changed the ContainerResource configuration and the container should be re-used.
This is the code I use to set it up:
Have I missed something?
Beta Was this translation helpful? Give feedback.
All reactions