diff --git a/openshift/ci-operator/build-image/Dockerfile b/openshift/ci-operator/build-image/Dockerfile index 545b2b0c956f..f138ff62ef28 100644 --- a/openshift/ci-operator/build-image/Dockerfile +++ b/openshift/ci-operator/build-image/Dockerfile @@ -10,5 +10,9 @@ RUN yum install -y kubectl httpd-tools RUN GOFLAGS='' go install github.com/mikefarah/yq/v3@latest RUN GOFLAGS='' go install knative.dev/test-infra/tools/kntest/cmd/kntest@latest +# go install creates $GOPATH/.cache with root permissions, we delete it here +# to avoid permission issues with the runtime users +RUN rm -rf $GOPATH/.cache + # Allow runtime users to add entries to /etc/passwd RUN chmod g+rw /etc/passwd