Files
open-cluster-management/Dockerfile
2020-06-10 15:53:14 +08:00

12 lines
519 B
Docker

FROM docker.io/openshift/origin-release:golang-1.13 AS builder
WORKDIR /go/src/github.com/open-cluster-management/registration
COPY . .
ENV GO_PACKAGE github.com/open-cluster-management/registration
RUN make build --warn-undefined-variables
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
COPY --from=builder /go/src/github.com/open-cluster-management/registration/registration /
COPY --from=builder /go/src/github.com/open-cluster-management/registration/e2e.test /
RUN microdnf update && microdnf clean all