-
Notifications
You must be signed in to change notification settings - Fork 352
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
feat: add distroless #1348
feat: add distroless #1348
Conversation
|
||
RUN apk --no-cache --latest upgrade &&\ | ||
apk --no-cache --upgrade --latest add ca-certificates | ||
FROM gcr.io/distroless/base-nossl-debian11:nonroot AS runner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this come with CGO? We need it for SQLite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the image comes with glibc -> https://github.com/GoogleContainerTools/distroless/blob/main/base/README.md :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -0,0 +1,8 @@ | |||
FROM gcr.io/distroless/static-debian11:nonroot | |||
|
|||
COPY keto /usr/bin/keto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this image being used for? How will the keto
binary be built? In this case it needs to be for linux-x86 with CGO=0
. Will this be guaranteed?
Related issue(s)
Checklist
introduces a new feature.
contributing code guidelines.
vulnerability. If this pull request addresses a security vulnerability, I
confirm that I got the approval (please contact
[email protected]) from the maintainers to push
the changes.
works.
Further Comments