Opinionated Dockerfile for Node.js and TypeScript development. This image includes a set of common tools and configurations for a smooth development experience.
- This image is built on top of the Node.js base image. Default image variant is
24-bookworm-slim, which is based on the latest LTS version of Node.js (24.x) and Debian Bookworm. - Package Manager is set up through corepack, PNPM is enabled and configured by default.
- Common tools like
eslint,prettier, andtypescriptare included. - It includes
git,curl,zsh,Oh My Zsh!, a non-rootnonrootuser and a set of common dependencies for development. Oh My Zsh!common plugins likez,zsh-completions,zsh-autosuggestionsandzsh-syntax-highlightingare included for a better shell experience.- Non-root user (
nonroot) with limited permissions for improved security.
| Argument | Description | Type | Default Value |
|---|---|---|---|
| VARIANT | The image variant to use. See supported tags | string |
24-bookworm-slim |
You can directly reference pre-built versions of Dockerfile by using the image property in .devcontainer/devcontainer.json or updating the FROM statement in your own Dockerfile to one of the following. An example Dockerfile is included in this repository.
ghcr.io/6thpath/typescript-node
Refer to this guide for more details.
This project is licensed under the MIT License.