Skip to content

prantlf/docker-node-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prantlf/node-git

Docker image: Node.js LTS on Alpine Linux with Git

nodesource/node

This image is supposed to build and test Node.js packages (NPM modules), which include dependencies pulled by Git. 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 has to be updated from time to time by triggering a new build manually.

If you have trouble pulling the image from the Docker's default hub.docker.com, try gitlab.com, where this project is primarily maintained: registry.gitlab.com/prantlf/docker-node-git.

Tags

Install

docker pull prantlf/node-git:lts-alpine

Use

docker run --rm -it -v "$(pwd)":/app -w /app \
  prantlf/node-git:lts-alpine \
  sh -c 'npm ci && npm test'

See how to use the base node image for more information.

Build, Test and Publish

The local image is built as node-git and pushed to the docker hub as prantlf/node-git:lts-alpine.

Remove an old local image:

make clean

Check the Dockerfile:

make lint

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

License

Copyright (c) 2019-2021 Ferdinand Prantl

Licensed under the MIT license.

About

Docker image: Node.js LTS on Alpine Linux with Git

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published