Skip to content

Files

Latest commit

 

History

History
35 lines (22 loc) · 1.34 KB

README.md

File metadata and controls

35 lines (22 loc) · 1.34 KB

Minimal Node Docker File

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.

Prerequisites

Install Docker to run docker commands.

Building the Docker Image

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.

Log in to the Docker Image

To log in to the previously built Docker image, run:

docker run -ti {imagename} sh

{imagename} can be any string.