Skip to content

Latest commit

 

History

History
32 lines (15 loc) · 1.18 KB

File metadata and controls

32 lines (15 loc) · 1.18 KB

Node.js Versioned Dockerfile

This repository contains Dockerfile of Node.js for Docker's automated build published to the public Docker Hub Registry.

The master branch here corresponds to the lastest tag in Dockerhub, which installs nodejs@latest. Any other versions are under their own branches here, and correspond to their versioned tags in Dockerhub.

Base Docker Image

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull dockerfile/nodejs:latest

    (alternatively, you can build an image from Dockerfile: docker build -t="dorkusprime/nodejs:latest" github.com/dorkusprime/nodejs_versioned)

Usage

docker run -it --rm dorkusprime/nodejs:0.11.9

Run node

docker run -it --rm dorkusprime/nodejs:0.11.9 node

Run npm

docker run -it --rm dorkusprime/nodejs:0.11.9 npm