Skip to content

Commit

Permalink
Update .ko.yaml
Browse files Browse the repository at this point in the history
Update to debian12
Disable cgo and use static base image

Signed-off-by: Appu Goundan <[email protected]>
  • Loading branch information
loosebazooka committed Sep 15, 2023
1 parent 6d62aa5 commit a919dc9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .ko.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
defaultBaseImage: gcr.io/distroless/base-debian10
defaultBaseImage: gcr.io/distroless/static-debian12
builds:
- main: .
env:
- CGO_ENABLED=1
# If you are deploying from M1, you can use this (uncomment below, and
# comment out above), though it does remove the support for the "createca" command.
# But at least you can deploy it from M1 using this.
# - CGO_ENABLED=0
- CGO_ENABLED=0
# If you need support for the the "createca" command, you must enable
# CGO and use a base image with gblic (base instead of static)
# - CGO_ENABLED=1
flags:
- -trimpath
- -tags
Expand Down

0 comments on commit a919dc9

Please sign in to comment.