Concept
A container image packages Node, your code and its dependencies so it runs the same on a laptop and in production. A small, non-root image with only production dependencies is the goal.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Containers doing its job.
FROM node:22-alpine AS deps
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY --from=deps /app/node_modules ./node_modules
COPY src ./src
USER node
EXPOSE 3000
CMD ["node", "src/server.js"]Copying the whole project, including node_modules and .env, into the image. The image bloats, native modules built for the wrong platform break, and secrets ship in every layer.
Your roadmap puts these before Containers, unless you already know them.
Once a session shows you understand Containers, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.