Files
open-cluster-management/Dockerfile
2022-04-25 04:04:06 -04:00

14 lines
446 B
Docker

FROM golang:1.17 AS builder
WORKDIR /go/src/open-cluster-management.io/registration-operator
COPY . .
ENV GO_PACKAGE open-cluster-management.io/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/open-cluster-management.io/registration-operator/registration-operator /
RUN microdnf update && microdnf clean all
USER ${USER_UID}