diff --git a/Dockerfile.kmm-operator-build b/Dockerfile.kmm-operator-build index a0446f858..1a1f56404 100644 --- a/Dockerfile.kmm-operator-build +++ b/Dockerfile.kmm-operator-build @@ -1,4 +1,4 @@ -FROM golang:1.21-alpine3.19 +FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.21-openshift-4.17 ENV GO111MODULE=on ENV GOFLAGS="" @@ -6,7 +6,7 @@ ENV CGO_ENABLED=0 ENV GOOS=linux ENV GOARCH=amd64 -RUN ["apk", "add", "bash", "make", "docker", "curl", "shadow", "git"] +RUN yum install -y podman docker RUN go install go.uber.org/mock/mockgen@v0.3.0 RUN curl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -o /tmp/kubectl RUN install -o root -g root -m 0755 /tmp/kubectl /usr/local/bin/kubectl