Question · Next.js course · Module 8: Deployment and Production

Multi-stage Build in Dockerfile

What does the correct first line of a builder stage look like in a multi-stage Dockerfile?

Answer options

  • FROM node:24 AS builder
  • STAGE builder FROM node:24
  • BUILD FROM node:24
  • FROM node:24 --stage=builder

You can check the correct answer by solving this task in the CodeWorlds game.