-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop distroless and DIY #781
Conversation
5ea67c5
to
1cd324e
Compare
Looks good, but one question... why do we do this in stage_binaries.sh?
Is apt / dpkg available in the final image? Is it used somewhere in the staging process? |
re /var/lib/dpkg/status.d/ - apt is not in the final image. This seems to be the negotiated truce between such images (including those created by bazel) and security scanners. Just enough metadata to satisfy trivy. |
Distroless is stuck on debian 11 - we can do the same thing, more or less in our own script. Sad that we have to, but here we are. The net result is a about 8MB smaller and passes e2e and passes trivy.
1cd324e
to
a56f58d
Compare
Added some comments |
Result: 57.7MB A build looks like:
|
Great to know how we can fix all CVEs ;-) /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justinsb, thockin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Distroless is stuck on debian 11 - we can do the same thing, more or less in our own script. Sad that we have to, but here we are.
The net result is a about 8MB smaller and passes e2e and passes trivy.
Fixes #779
Fixes #780