Skip to content
A basic example of building a Node.js into a Docker container
Shell Dockerfile TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
multi Switched over to an alpine image. Oct 8, 2019


Some basic examples of using Node.js and Docker.

You can run these directly with Docker or use Vagrant.

Follow the developer on Twitter for updates.

Need to build a microservices application? Learn how to do this with Bootstrapping Microservices.

Need to do exploratory coding, data analysis and visualization in JavaScript/TypeScript? Check out Data-Forge Notebook


To use Vagrant you need Vagrant and Virtual Box installed, then open a terminal, change into the repository's directory and run:

vagrant up

That will give you Linux VM with Docker installed that you can use to run the examples.

Please see the README in each sub-directory for more instructions.

Simplest example

The simple sub-directory contains the simplest example of Node.js and Docker.

Multi-stage build

The multi sub-directory shows an example of multi-stage Docker build that compiles TypeScript code.

You can’t perform that action at this time.