This Docker image is made for use in a development environment, particularly with devcontainers.
The container runs with ZSH
and comes pre-installed with nvm
, npm
, yarn
& pnpm
, along with some basic development packages
such as git
, curl
, wget
& neovim
. It also includes graphical support for browsers used with test runners like Playwright and Selenium,
for smooth non distorted rendering on the host machine.
Update your devcontainer.json
file as follows:
{
"name": "Node.js & TypeScript",
"image": "ashgw/node:latest",
"runArgs": [
"-e",
"DISPLAY=host.docker.internal:0",
"-v",
"/tmp/.X11-unix:/tmp/.X11-unix"
]
}
Make sure X11 is properly configured on the host machine. Set the DISPLAY environment variable to allow GUIs in the container to connect to the host's X server.