Moved ARG definitions, smaller comment

This commit is contained in:
Enrico Candino
2026-07-23 17:34:21 +02:00
parent 4a2de8f8a4
commit 0b770106a7
2 changed files with 8 additions and 13 deletions
+4 -6
View File
@@ -1,14 +1,12 @@
FROM registry.suse.com/bci/bci-base:16.1
ARG TARGETPLATFORM
# BIN_DIR is the directory containing the binaries within the build context.
# GoReleaser (dockers_v2) stages binaries under a per-platform directory that
# matches TARGETPLATFORM (e.g. linux/amd64), so that is the default. Other
# callers (e.g. the Makefile) can override it, for example with BIN_DIR=bin.
ARG BIN_DIR=${TARGETPLATFORM}
ARG BIN_K3K=k3k
ARG BIN_K3KCLI=k3kcli
# BIN_DIR defaults to the buildx per-platform dir; override (e.g. BIN_DIR=bin) for flat layouts.
ARG TARGETPLATFORM
ARG BIN_DIR=${TARGETPLATFORM}
COPY ${BIN_DIR}/${BIN_K3K} /usr/bin/
COPY ${BIN_DIR}/${BIN_K3KCLI} /usr/bin/
+4 -7
View File
@@ -1,14 +1,11 @@
# TODO: swicth this to BCI-micro or scratch. Left as base right now so that debug can be done a bit easier
FROM registry.suse.com/bci/bci-base:16.1
ARG TARGETPLATFORM
# BIN_DIR is the directory containing the binaries within the build context.
# GoReleaser (dockers_v2) stages binaries under a per-platform directory that
# matches TARGETPLATFORM (e.g. linux/amd64), so that is the default. Other
# callers (e.g. the Makefile) can override it, for example with BIN_DIR=bin.
ARG BIN_DIR=${TARGETPLATFORM}
ARG BIN_K3K_KUBELET=k3k-kubelet
# BIN_DIR defaults to the buildx per-platform dir; override (e.g. BIN_DIR=bin) for flat layouts.
ARG TARGETPLATFORM
ARG BIN_DIR=${TARGETPLATFORM}
COPY ${BIN_DIR}/${BIN_K3K_KUBELET} /usr/bin/
ENTRYPOINT ["/usr/bin/k3k-kubelet"]