-
Notifications
You must be signed in to change notification settings - Fork 5
fix(Dockerfile): use static-debian12 nonroot image #76
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
Conversation
|
Hey crossplane team! I noticed that for some reason this image is using a different base image (example). |
jbw976
left a comment
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.
Thanks for noticing this and submitting a fix @paguos - what do you think about making it static-debian12:nonroot to completely match other functions?
Dockerfile
Outdated
| # Produce the Function image. We use a very lightweight 'distroless' image that | ||
| # does not include any of the build tools used in previous stages. | ||
| FROM gcr.io/distroless/base-debian12 AS image | ||
| FROM gcr.io/distroless/base-debian12:nonroot AS image |
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.
looks like a fair bit of other functions use static-* instead. should that change be made here too?
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 that makes sense, I updated the image. Can you have another look, please?
Signed-off-by: Pablo Osinaga <[email protected]>
jbw976
left a comment
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.
awesome, thank you for making this update!
@dalton-hill-0 i'm not a maintainer on this repo, so feel free to put your final approval on too 😉
dalton-hill-0
left a comment
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.
thanks for adding this 🙂
Description of your changes
Fixes #
I have: