Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.91 KB

File metadata and controls

30 lines (20 loc) · 1.91 KB

Node.js & TypeScript

Summary

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, and typescript are included.
  • It includes git, curl, zsh, Oh My Zsh!, a non-root nonroot user and a set of common dependencies for development.
  • Oh My Zsh! common plugins like z, zsh-completions, zsh-autosuggestions and zsh-syntax-highlighting are 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

Using this image

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.

License

This project is licensed under the MIT License.