You can define the nodejs major version to be installed via setting the environment variable NODEJS_MOD_VERSION (accepts 16, 18, 20, etc. Minimum of 16, defaults to 16).
Mod for code-server
Nodejs
This mod adds a nodejs dev environment to code-server/openvscode-server, to be installed/updated during container start.
- arch
- amd64
- built
Use it#
Set DOCKER_MODS on the code-server container and recreate it. The mod is pulled on every start; several mods are separated with |.
:code-server-nodejs always gets the newest build. To stay on this one, pin its tag:
services:
code-server:
image: ghcr.io/linuxserver-playground/code-server:latest
environment:
- DOCKER_MODS=ghcr.io/linuxserver-playground/mods:code-server-nodejsFor
Also for openvscode-server.
Details#
Community project
Improve this mod, or make your own
Mods are how LinuxServer images grow without getting heavier: a Dockerfile, a few scripts and a mod.yml. If this one is missing something, or you need one like it for another image, an AI agent in our harness can build and test it with you.
Ask your agent
- The code-server-nodejs mod <what is wrong>. Fix it, test it and draft the PR.
- Make a mod like code-server-nodejs for <another image>, and test it.
Making a mod Every way to help Get the harness (opens in a new tab)
Source: code-server-nodejs branch (opens in a new tab). Every mod