Specifying a Node.js version

A Node.js version can be specified in the first line of your Dockerfile.

For example to specify the LTS Node.js 8:

FROM node/8.12.0-alpine

WORKDIR /opt/app