mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-07 01:36:57 +00:00
17 lines
595 B
Docker
17 lines
595 B
Docker
FROM registry.ci.openshift.org/open-cluster-management/builder:go1.16-linux AS builder
|
|
WORKDIR /go/src/open-cluster-management.io/registration
|
|
COPY . .
|
|
ENV GO_PACKAGE open-cluster-management.io/registration
|
|
|
|
RUN make build --warn-undefined-variables
|
|
RUN make build-e2e --warn-undefined-variables
|
|
|
|
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
|
|
ENV USER_UID=10001
|
|
|
|
COPY --from=builder /go/src/open-cluster-management.io/registration/registration /
|
|
COPY --from=builder /go/src/open-cluster-management.io/registration/e2e.test /
|
|
RUN microdnf update && microdnf clean all
|
|
|
|
USER ${USER_UID}
|