To keep the image as small as possible you can delete the cache npm builds
RUN npm install --production && npm cache clean --force
And by putting "fix" settings that don't change, like
towards the beginning of the Dockerfile you can sometimes save build time because docker can build upon existing layers that didn't change.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.