22 karma · joined June 14, 2017
I tested it recently on a clean install of Strapi: about 250 MB are freed up. Storage is cheap but that still represents a lot, especially inside a Docker image.
The patterns used to find files are specific enough to target only those files that are well known to be useless at runtime.
Also, when you create a Docker image, you avoid packing in dev tools that aren't absolutely essential (such as pnpm).
Useless files will still be there.
Also, when you create a Docker image, you avoid packing in dev tools that aren't absolutely essential (such as Yarn).
- The patterns used to find files are specific enough to target only those files that are well known to be useless at runtime.
- The license texts of these libraries can be copied and merged into a main LICENSE file.
- Have you seen the number of modules installed by most major libraries? Making a pull request for each of them is humanly impossible and counter-productive. It's easier to use a simple script that releases dozens of MB in a few seconds.