Dev Container vs. Prod Container Mismatch #123
Replies: 1 comment
-
Hi 👋 Thanks for raising this issue and yes, I understand your concerns. You're looking for a way to maintain consistency between development and production Docker containers while also sharing a common development Dockerfile across multiple projects. Here's a general approach:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Is that a concern?
With Dev Container we have a container built for development purposes, but when it comes to a Prod Container, a Container that is meant to run the application in production environments.
Do you have two different
Dockerfile
s? How do you keep/maintain both containers using the same base/versions/extensions?Do you use multi-stage in a single
Dockerfile
?How do you share a single
Dockerfile
to act as the Dev Container for multiple projects, but keep a productionDockerfile
for each project and still deal with mismatches?Did you folks get what I'm talking about?
Beta Was this translation helpful? Give feedback.
All reactions