-
I understand that there are two approaches to create a devcontainer for a single language nowadays:
What are the benefits and downsides of each of the above two approaches? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
Chuxel
Jan 27, 2023
Replies: 1 comment
-
Advantages of starting from an language image:
Advantages of starting from an OS image:
In either case:
That help? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alefteris
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Advantages of starting from an language image:
node
gives you the opportunity to use that same base when you deploy your app in a container - which improves in consistency. The is the primary reason themcr.microsoft/devcontainer
images flow this pattern. They are the language images + some additions in another layer.python
speeds things up. That said, if you are pre-building your images, this isn't quite as big a deal.Advantages of starting from an OS image: