Node.js LTS on Alpine Linux with Git and Chromium
940
Docker image: Node.js LTS on Alpine Linux with Git and Chromium
This image is supposed to build and test Node.js packages (NPM modules), which include dependencies pulled by Git ant their unit tests need headless Chromium. It is built automatically on the top of the tag lts-alpine from the node repository, so that it always runs the current LTS version of Node.js in the latest Alpine Linux. Git and Chromium have to be updated from time to time by triggering a new build manually.
docker pull prantlf/node-git-chromium:lts-alpine
docker run --rm -it -v "$(pwd)":/app -w /app \
prantlf/node-git-chromium:lts-alpine \
sh -c 'npm ci && npm test'
See how to use the base node image for more information.
The local image is built as node-git-chromium and pushed to the docker hub as prantlf/node-git-chromium:lts-alpine.
Remove an old local image:
make clean
Build a new local image:
make build
Enter an interactive shell inside the created image:
make run
Tag the local image for pushing:
make tag
Login to the docker hub:
make login
Push the local image to the docker hub:
make push
Copyright (c) 2019-2020 Ferdinand Prantl
Licensed under the MIT license.
Content type
Image
Digest
Size
161.1 MB
Last updated
almost 5 years ago
docker pull prantlf/node-git-chromium