docker-roadmap icon indicating copy to clipboard operation
docker-roadmap copied to clipboard

Dockerfile optimization

Open trx40 opened this issue 7 months ago • 0 comments

  1. Added a layer in dockerfile to copy over package.json and package-lock.json, this ensures that npm install only runs if there are modifications in npm packages.
  2. Replaced the base image for node with the equivalent alpine linux version to reduce the footprint of the docker image.

trx40 avatar Nov 14 '23 14:11 trx40