This project contains the Docker file to install node modules for projects. The official Node 4 image based on Alpine Linux installation with Yarn added for convenience.
Install Docker to run docker
commands.
To build the image, run:
docker build -t {imagename} --build-arg SOURCE_COMMIT=$(git rev-parse --short HEAD) .
Note:
{imagename}
can be any string.- Syntax shown above works in
bash
.
To log in to the previously built Docker image, run:
docker run -ti {imagename} sh
{imagename}
can be any string.