docker-roadmap
docker-roadmap copied to clipboard
docker assignment 1
The changes in the docker file solve two issues -
- Improves build time by copying package.json file over first and running npm install command. This way copying step of package.json would be cached if there are no changes in it and the subsequent command (npm install) will be skipped.
- Reduces the image size as it uses the smaller node image (node:20-alpine).