Docker and CI/CD · Junior · Question 4 of 75
What does FROM node:22-alpine do in a Dockerfile?
- 1Downloads Node.js 22 into the current host machine
- ✓Correct answer: Sets the base image that the build starts from
- 3Names the final image
nodewith the tag22-alpine
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.