mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-18 07:08:42 +00:00
* Add interested field (#107) * Add interested field Signed-off-by: Jian Qiu <jqiu@redhat.com> * Add integration test Signed-off-by: Jian Qiu <jqiu@redhat.com> * Resolve comments Signed-off-by: Jian Qiu <jqiu@redhat.com> * Update go to 1.17 Signed-off-by: Jian Qiu <jqiu@redhat.com>
17 lines
512 B
Docker
17 lines
512 B
Docker
FROM quay.io/bitnami/golang:1.17 AS builder
|
|
WORKDIR /go/src/open-cluster-management.io/work
|
|
COPY . .
|
|
ENV GO_PACKAGE open-cluster-management.io/work
|
|
|
|
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/work/work /
|
|
COPY --from=builder /go/src/open-cluster-management.io/work/e2e.test /
|
|
RUN microdnf update && microdnf clean all
|
|
|
|
USER ${USER_UID}
|