AshGw / node

Optimized Devcontainers Image For Node w/ TS Support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

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.

Usage

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"
    ]
}

Display Confs

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.

License

GPL-3.0

About

Optimized Devcontainers Image For Node w/ TS Support

License:GNU General Public License v3.0


Languages

Language:Dockerfile 100.0%