Need help getting npm to persist in docker code-server #4276
-
|
Using the code-server terminal, one can install nodejs and npm, within the docker container. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
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 Here is another example which starts from the code-server image. Let me know if that helps! |
Beta Was this translation helpful? Give feedback.
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!