Skip to content

Need help getting npm to persist in docker code-server #4276

Answered by jsjoeio
mia-riezebos asked this question in Q&A
Discussion options

You must be logged in to vote

Fantastic question! So when you're running code-server inside a Docker container and install dependencies or packages, they won't persist (as you've explained). Instead, you'll need to install them in the Dockerfile. Here's an example for installing Node.

Here is another example which starts from the code-server image.

Let me know if that helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jsjoeio
Comment options

Answer selected by mia-riezebos
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