Build a Node.js AppCreate a complete, production-ready Dockerfile
Build a complete Dockerfile for a Node.js application. You'll write the base image, working directory, copy files, install dependencies, expose a port, and set the start command. Each instruction creates a layer that Docker caches for fast rebuilds.
Goal: Write a complete Dockerfile with at least 6 instructions (FROM, WORKDIR, COPY, RUN, EXPOSE, CMD), then run: docker build -t myapp:v1 .
Type a Dockerfile instruction
FROM · RUN · COPY · EXPOSE · CMD
Dockerfile Mastery
0/11 complete