Complete the Dockerfile line to specify the base image for the build stage.
FROM [1] AS buildThe build stage uses the Node.js 14 image as the base to compile the application.
Complete the Dockerfile line to copy only production dependencies in the final stage.
COPY --from=build /app/[1] ./
Copying 'node_modules' from the build stage ensures only production dependencies are included.
Fix the error in the Dockerfile line that sets the environment variable for production.
ENV NODE_ENV=[1]Setting NODE_ENV to 'production' ensures the app runs in production mode.
Fill both blanks to complete the multi-stage Dockerfile for build and production stages.
FROM [1] AS build FROM [2] AS production
The build stage uses the full Node 16 image, while the production stage uses a smaller Alpine image for efficiency.
Fill all three blanks to complete the Dockerfile snippet that copies build output and sets the command.
COPY --from=[1] /app/[2] ./ CMD ["[3]"]
Copy from the 'build' stage the 'dist' folder and run the app using 'node' command.