Skip to content

Instantly share code, notes, and snippets.

View foreversmart's full-sized avatar
🤒

Rorschach foreversmart

🤒
View GitHub Profile
@phosae
phosae / imagetools.md
Last active June 28, 2024 10:30
Dockerless image

ko for Golang

# simple main
KO_DOCKER_REPO=zengxu ko build --platform linux/amd64,linux/arm64 -B -t `<tag>`
# cmd style
KOCACHE=/tmp/ko KO_DOCKER_REPO=zengxu ko build --platform linux/amd64 qiniu.com/dora-cloud/next/app/application-controller

change base image --> KO_DEFAULTBASEIMAGE

kyverno examples of ko