feat(container): switch to Alpine container
Description
This reduces the container image size from about 950MB to 200MB.
Closes #4183.
Motivation and Context
See #4183
How Has This Been Tested?
$ docker buildx build -f Dockerfile.ci .
Types of changes
Although I've labeled this as a non-breaking change, it could potentially disrupt containers derived from this image. Please consider reclassifying it as a breaking change if necessary.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
/cc @kaiehrhardt @knocte would you mind having a look at this?
I have no idea about how this Dockerfile.ci is used
@escapedcat lgtm
Is there a list of system dependencies for commitlint? I just realized yesterday that I forgot to add git, and I'm wondering whether there are more dependencies. Previously, many "basic" tools were available from the large base image, but they would now be missing if not explicitly installed. Are there other things I should test?
Is there a list of system dependencies for commitlint?
Haven't seen one. I'm also not exactly sure. Maybe we try this, give it a try and adjust if needed?
Jumping back on this PR. Is there anything still missing here, or shall we merge as @escapedcat suggested?
@skycaptain hey, yes, sorry! Let me merge it these days and we'll see what happens ;)
Done 🤞
Looks like this went well?