Skip to content

What's the best pattern for creating your prod container given your devcontainer? #4

Answered by Chuxel
alex-treebeard asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @alex-treebeard, yes - we're in the process of getting feedback channels ironed out. We also spun up a Slack channel (see https://github.com/orgs/devcontainers/discussions/3). Many conversations have ended up in previous VS Code or GitHub specific spots just based on history while we start to route people to the open spec.

Anyway, generally the way I've been doing this is with a combination of multi-stage Dockerfiles and, recently, Dev Container Features. Dev Container Features provide a quick way to add needed development and CI specific layers that you would not actually use in production. Each line in the "green" above is effectively an image layer (or set of layers). So, you'd typ…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alex-treebeard
Comment options

Answer selected by Chuxel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants