Complete the Dockerfile line to copy files from the build stage to the final stage.
COPY --from=[1] /app/build /app
The --from=builder option tells Docker to copy files from the build stage named 'builder'.
Complete the Dockerfile to name the build stage correctly.
FROM node:18 AS [1]
The build stage is named 'builder' to be referenced later for copying files.
Fix the error in the COPY command to correctly copy from the build stage.
COPY --from=[1] /usr/src/app/dist /app
The correct stage to copy from is 'builder', which is the build stage.
Fill both blanks to complete the multi-stage Dockerfile snippet.
FROM python:3.12 AS [1] RUN pip install -r requirements.txt FROM alpine:latest AS [2] COPY --from=[1] /app /app
The first stage is named 'builder' where dependencies are installed. The second stage is 'final' where files are copied.
Fill all three blanks to complete the Dockerfile for copying build output to final stage.
FROM golang:1.20 AS [1] WORKDIR /src RUN go build -o app . FROM scratch AS [2] COPY --from=[1] [3] /app
The build stage is named 'builder'. The final stage is 'final'. The built binary is at '/src/app' in the build stage.