Docker and CI/CD · Junior · Question 4 of 75

What does FROM node:22-alpine do in a Dockerfile?

Explanation

Every build starts from a base image, here the official Node.js 22 image on Alpine Linux. Your instructions add layers on top of it.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 4

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz