craigmorten / nodebuild-docker

Docker image for building, testing and running node based projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nodebuild-docker

Docker image for building, testing and running node based projects.

Usage

Build:

docker build -t nodebuild-docker .

Run with local script directory volume mounted, and execute the command of swapping node version to argon:

cmd="source /usr/local/nvm/nvm.sh; nvm install lts/argon"

docker run -it --rm --name nodebuild-docker \
    -v $(pwd)/scripts:/opt/app/scripts \
    nodebuild-docker /bin/bash -c "${cmd}"

About

Docker image for building, testing and running node based projects.

License:Apache License 2.0