-
Notifications
You must be signed in to change notification settings - Fork 394
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
✨ Use distroless/static:debug as base image #2512
Conversation
@@ -1,3 +1,5 @@ | |||
# syntax=docker/dockerfile:1.4 |
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.
This is for completeness and to make sure clients don't assume the version
Dockerfile
Outdated
RUN apt-get update && apt-get install -y jq && mkdir bin | ||
|
||
# Install kubectl. | ||
ARG kubernetes_version=1.24.2 |
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.
(as a follow-up) is it possible to run go mod
to get this value dynamically?
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.
Yeah we can do that with grep and whatnot, haven't found a clean way to set it
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.
$ go list -m -json k8s.io/kubernetes | jq .Version
"v1.24.3"
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! Added it to the Dockerfile
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: stevekuznetsov 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 |
/retest |
Signed-off-by: Vince Prignano <[email protected]>
/lgtm |
Signed-off-by: Vince Prignano [email protected]
Summary
This PR also adds support for better caching when building layers
Related issue(s)
Fixes #798