9/18

Build Cache Ordering

medium 5 XP ~1 minQuiz

A Node.js Dockerfile looks like this and rebuilds all dependencies on every code change:

FROM node:22-slim
WORKDIR /app
COPY . .
RUN npm ci
CMD ["node", "server.js"]

What is the most effective change to make rebuilds fast?

Choose one answer