forked from stolostron/multicloud-operators-foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (17 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM docker.io/openshift/origin-release:golang-1.16 AS builder
WORKDIR /go/src/github.com/open-cluster-management/multicloud-operators-foundation
COPY . .
ENV GO_PACKAGE github.com/open-cluster-management/multicloud-operators-foundation
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 \
USER_NAME=acm-foundation
COPY --from=builder /go/src/github.com/open-cluster-management/multicloud-operators-foundation/proxyserver /
COPY --from=builder /go/src/github.com/open-cluster-management/multicloud-operators-foundation/controller /
COPY --from=builder /go/src/github.com/open-cluster-management/multicloud-operators-foundation/webhook /
COPY --from=builder /go/src/github.com/open-cluster-management/multicloud-operators-foundation/agent /
COPY --from=builder /go/src/github.com/open-cluster-management/multicloud-operators-foundation/e2e.test /
RUN microdnf update && \
microdnf clean all
USER ${USER_UID}