github.com/tiredofit/docker-nodejs
About
Dockerfile to build a NodeJS base image for building/serving applications. This container uses Alpine and Debian as a base.
Maintainer
Table of Contents
Prerequisites and Assumptions
None.
Dependencies
None.
Installation
Automated builds of the image are available on Docker Hub and is the recommended method of installation.
docker pull tiredofit/nodejs:(image tag)
The following image tags are available:
10:latest
- Node JS 10 - Alpine 3.1310:debian-latest
- Node JS 10 - Debian Buster12:latest
- Node JS 12 - Alpine 3.1312:debian-latest
- Node JS 12 - Debian Buster14:latest
- Node JS 14 - Alpine 3.1316:latest
- Node JS 16 - Alpine 3.1314:debian-latest
- Node JS 14 - Debian bBuster16:debian-latest
- Node JS 16 - Debian bBuster
Quick Start
- The quickest way to get started is using docker-compose.
- Set various environment variables to understand the capabilities of this image.
- Map persistent storage for access to configuration and data files for backup.
- Map Network Ports to allow external access.
Start the container using:
docker-compose up
Persistent Storage
This a base image, so no data volumes are exposed.
Environment Variables
No environment variables are exposed other than the base environment variables.
Networking
No networking ports are exposed.
Shell Access
For debugging and maintenance purposes you may want access the containers shell.
docker exec -it nodejs bash