forked from cilium/cilium-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
publish images: amd64/arm64 images containing cli only
There was no prebuilt image available for multiple architectures, this provides an image from scratch only containing cilium-cli binary. This ensures that the image can be used directly as a standalone solution or included within other containers example dockerfile --- FROM quay.io/cilium/cilium-cli:tag as cilium FROM exampleimage COPY --from=cilium /usr/local/bin/cilium /usr/local/bin/cilium --- Fixes: cilium#2755 Signed-off-by: Merijn Keppel <merijnkeppel@gmail.com>
- Loading branch information
Showing
2 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# syntax=docker/dockerfile:1.9@sha256:fe40cf4e92cd0c467be2cfc30657a680ae2398318afd50b0c80585784c604f28 | ||
|
||
# Copyright Authors of Cilium | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM docker.io/library/golang:1.22.6-alpine3.19@sha256:1bad39361dd21f2f881ce10ff810e40e5be3eba89a0b61e762e05ec42f9bbaf2 AS builder | ||
WORKDIR /go/src/github.com/cilium/cilium-cli | ||
RUN apk add --no-cache git make ca-certificates | ||
COPY . . | ||
RUN make | ||
|
||
FROM scratch | ||
LABEL maintainer="maintainer@cilium.io" | ||
COPY --from=builder /go/src/github.com/cilium/cilium-cli/cilium /usr/local/bin/cilium | ||
ENTRYPOINT [] | ||
|