A minimal NodeJS image with Time Zone configurable.
This image is build on Alpine Linux 3.11 image. It comes with the necessary stuff to run/develop NodeJS applications and no unnecessary programs. It comes with bundled:
- NodeJS (See the current builded version, or check Docker Hub for other versions)
- NPM
- Yarn
The build process is very simple, just execute the following command:
$ docker build -t image-name . --squash
Note: the
--squash
argument its available only in API 1.25+. It squash newly built layers into a single new layer. This helps to reduce the final image size. See the documentation for more info.
Since this image comes with America/Cancun
time zone by default, you can customize by your prefered time zone by using the TZ
argument like this:
$ docker build -t image-name --build-arg TZ=America/Cancun . --squash
Just replace the TZ
value with your desired time zone.