Docker file FROM node:12.2.0-alpine

Viewed 13476

Hi I am new to the Docker and node. I want to know what does this line means?

FROM node:12.2.0-alpine

What the relationship between node and alpine?

And what if I want to use the newest version of node, what should I change?

Thank you so much!

1 Answers

Alpine is the base image which is based on Alpine Linux, a very compact Linux distribution. So, node:12.2.0-alpine is a Alpine Linux image with node 12.2.0 installed.

For the latest Alpine based image you can simply do node:alpine. If you want latest but not specifically Alpine you can do node:latest, that image will be based on stretch which is a Debian distribution.

You can find a full list of all supported tags here: https://hub.docker.com/_/node/

Related