1FROM node:20-alpine
2WORKDIR /app
3COPY . .
4RUN npm install
5CMD ["node", "server.js"]
no lines flagged
#074PracticeEasy8 min · 50 XP
Dockerfile Cache Busts on Every Code Change
Every deploy re-installs all npm dependencies from scratch, even when only application code changed.
Flagged linesNo lines flagged yet
What's wrong?
Flag a line or write a note to submit.