Open dkarlovi opened 7 months ago
Exclude all but the necessary files from the released package using .gitattributes
.gitattributes
It removes all but production files from the released package.
https://github.com/symfony/config/blob/7.0/.gitattributes
The unnecessary files stay in the package.
It's good practice to remove all but the strictly necessary files for production use from releases, this can typically substantially reduce the disk size (which is important for containerized apps), but it's all good hygiene practice.
✨ Feature request
Exclude all but the necessary files from the released package using
.gitattributes
Motivation
It removes all but production files from the released package.
Example
https://github.com/symfony/config/blob/7.0/.gitattributes
Alternatives
The unnecessary files stay in the package.
Additional context
It's good practice to remove all but the strictly necessary files for production use from releases, this can typically substantially reduce the disk size (which is important for containerized apps), but it's all good hygiene practice.