A Dockerfile is a text file that describes step by step how to build an image: base image (FROM), file copying (COPY), commands (RUN), port, startup command (CMD or ENTRYPOINT). Each instruction generally produces a layer.
Example
FROM node:22-alpine WORKDIR /app COPY . . CMD ["node", "server.js"]