Files
open-cluster-management/Dockerfile
Jian Qiu 5d86a958cb Update go to 1.17 (#108)
* 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>
2022-01-17 10:11:19 +01:00

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}