medium10 pts · first answer countsdockerci-cd
Slow Docker builds on every change
Every one-line code change makes the Docker build reinstall all npm packages. What change speeds it up?
FROM node:22-alpine WORKDIR /app COPY . . RUN npm ci RUN npm run build CMD ["node", "dist/server.js"]
Discussion 0
Join free to post in the discussion.
Related questions
- Docker image vs containerFull Stack Developer
- Why commit the lockfileFull Stack Developer
- Docker image versus containerBackend Developer
- Docker rebuild reinstalls everythingBackend Developer
- Speeding up mobile CI buildsMobile App Developer
- Static checks for a Flutter codebaseMobile App Developer
- What fastlane match solvesMobile App Developer
- CI build differs from a laptop buildMobile App Developer