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.
.github Create FUNDING.yml Oct 20, 2019
multi Switched over to an alpine image. Oct 8, 2019
simple Examples of Node.js and Docker. Aug 5, 2019
.gitignore Updated ignore file. Aug 6, 2019
LICENSE Fixed spelling. Nov 5, 2019
Vagrantfile Examples of Node.js and Docker. Aug 5, 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 on his new book 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.