Put in order · Next.js course · Module 9: Integrations and Advanced Features

Order of Directives in a Dockerfile

Arrange the correct order of basic directives in a Dockerfile for a Next.js application:

Items to put in order

  • WORKDIR /app
  • COPY package*.json ./
  • RUN npm ci
  • FROM node:20-alpine

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