Closed tdurieux closed 1 year ago
Hi there,
I've made a small improvement to the Dockerfile that I think could help optimize the image size.
Summary of the changes:
npm cache clean
npm install
npm
--no-install-recommends
rm -rf /var/lib/apt/lists/*
apt-get install
Impact on the image size:
I hope that you will find these changes useful to you. Let me know if you have any questions or concerns.
Thanks,
Thanks! Seems to work well.
Hi there,
I've made a small improvement to the Dockerfile that I think could help optimize the image size.
Summary of the changes:
npm cache clean
afternpm install
to removenpm
cache that is not needed inside the Docker image.--no-install-recommends
to with apt-get in order to not install unnecessary packages and reduce the image size.rm -rf /var/lib/apt/lists/*
afterapt-get install
which removes unnecessary files and reduces the size of the image.Impact on the image size:
I hope that you will find these changes useful to you. Let me know if you have any questions or concerns.
Thanks,