Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 2.73 KB

README.md

File metadata and controls

43 lines (29 loc) · 2.73 KB

Node.js & JavaScript

Summary

Develop Node.js based applications. Includes Node.js, eslint, nvm, and yarn.

Metadata Value
Categories Core, Languages
Image type Dockerfile
Published image mcr.microsoft.com/devcontainers/javascript-node
Available image variants 18 / 18-bullseye, 16 / 16-bullseye, 14 / 14-bullseye, 18-buster, 16-buster, 14-buster (full list)
Published image architecture(s) x86-64, arm64/aarch64 for bullseye variants
Container host OS support Linux, macOS, Windows
Container OS Debian
Languages, platforms Node.js, JavaScript

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.

  • mcr.microsoft.com/devcontainers/javascript-node (latest)
  • mcr.microsoft.com/devcontainers/javascript-node:18 (or 18-bullseye, 18-buster to pin to an OS version)
  • mcr.microsoft.com/devcontainers/javascript-node:16 (or 16-bullseye, 16-buster to pin to an OS version)
  • mcr.microsoft.com/devcontainers/javascript-node:14 (or 14-bullseye, 14-buster to pin to an OS version)

Refer to this guide for more details.

You can decide how often you want updates by referencing a semantic version of each image. For example:

  • mcr.microsoft.com/devcontainers/typescript-node:0-16 (or 0-16-bullseye, 0-16-buster)
  • mcr.microsoft.com/devcontainers/typescript-node:0.204-16 (or 0.204-16-bullseye, 0.204-16-buster)
  • mcr.microsoft.com/devcontainers/typescript-node:0.204.0-16 (or 0.204.0-16-bullseye, 0.204.0-16-buster)

However, we only do security patching on the latest non-breaking, in support versions of images (e.g. 0-1.16). You may want to run apt-get update && apt-get upgrade in your Dockerfile if you lock to a more specific version to at least pick up OS security updates.

Beyond Node.js and git, this image / Dockerfile includes eslint, zsh, Oh My Zsh!, a non-root node user with sudo access, and a set of common dependencies for development. Node Version Manager (nvm) is also included in case you need to use a different version of Node.js than the one included in the image.

License

Copyright (c) Microsoft Corporation. All rights reserved.

Licensed under the MIT License. See LICENSE