mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 18:09:57 +00:00
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Failing after 1s
Post / images (amd64, addon-manager) (push) Failing after 1s
Post / images (amd64, placement) (push) Failing after 1s
Post / images (amd64, registration) (push) Failing after 1s
Post / images (amd64, registration-operator) (push) Failing after 1s
Post / images (amd64, work) (push) Failing after 1s
Post / images (arm64, addon-manager) (push) Failing after 1s
Post / images (arm64, placement) (push) Failing after 1s
Post / images (arm64, registration) (push) Failing after 1s
Post / images (arm64, registration-operator) (push) Failing after 1s
Post / images (arm64, work) (push) Failing after 1s
Post / image manifest (addon-manager) (push) Has been skipped
Post / image manifest (placement) (push) Has been skipped
Post / image manifest (registration) (push) Has been skipped
Post / image manifest (registration-operator) (push) Has been skipped
Post / image manifest (work) (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped
Post / coverage (push) Failing after 18m26s
Close stale issues and PRs / stale (push) Failing after 1s
🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Qing Hao <qhao@redhat.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
19 lines
454 B
Docker
19 lines
454 B
Docker
FROM golang:1.25-bookworm AS builder
|
|
ARG OS=linux
|
|
ARG ARCH=amd64
|
|
WORKDIR /go/src/open-cluster-management.io/ocm
|
|
COPY . .
|
|
ENV GO_PACKAGE open-cluster-management.io/ocm
|
|
|
|
RUN GOOS=${OS} \
|
|
GOARCH=${ARCH} \
|
|
GO_BUILD_PACKAGES=./cmd/placement \
|
|
make build --warn-undefined-variables
|
|
|
|
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
|
|
ENV USER_UID=10001
|
|
|
|
COPY --from=builder /go/src/open-cluster-management.io/ocm/placement /
|
|
|
|
USER ${USER_UID}
|