Files
open-cluster-management/Dockerfile
Jian Qiu 76d6096be8 Change to use kustomize to deploy
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2021-06-18 08:11:12 +08:00

14 lines
529 B
Docker

FROM registry.ci.openshift.org/open-cluster-management/builder:go1.16-linux AS builder
WORKDIR /go/src/github.com/open-cluster-management/registration-operator
COPY . .
ENV GO_PACKAGE github.com/open-cluster-management/registration-operator
RUN make build --warn-undefined-variables
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
ENV USER_UID=10001
COPY --from=builder /go/src/github.com/open-cluster-management/registration-operator/registration-operator /
RUN microdnf update && microdnf clean all
USER ${USER_UID}