Dockerfile to build a NodeJS base image for building applications.
This Container uses [Alpine 3.6] and [Debian:stretch] as a base.
- Introduction
- Prerequisites
- Dependencies
- Installation
- Quick Start
- Configuration
- Maintenance
- References
None.
None.
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:
4:latest
- Node JS 4 - Alpine 3.64:debian-latest
- Node JS 4 - Debian Stretch6:latest
- Node JS 6 - Alpine edge6:debian-latest
- Node JS 6 - Debian Stretch8:latest
- Node JS 8 - Alpine 3.68:debian-latest
- Node JS 8 - Debian Stretch8:latest
- Node JS 8 - Alpine 3.69:debian-latest
- Node JS 9 - Debian Stretch9:latest
- Node JS 9 - Alpine 3.6latest
- Node JS 9 - Alpine edge
-
The quickest way to get started is using docker-compose. See the examples folder for a working docker-compose.yml that can be modified for development or production use.
-
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
This a base image, so no data volumes are exposed.
No Environment Variables are exposed other than the base environment variables..
No Networking Ports are exposed.
For debugging and maintenance purposes you may want access the containers shell.
docker exec -it nodejs bash