diff --git a/base/Dockerfile.rhel b/base/Dockerfile.rhel index 6a095d68b..5b917de2c 100644 --- a/base/Dockerfile.rhel +++ b/base/Dockerfile.rhel @@ -20,7 +20,8 @@ RUN INSTALL_PKGS=" \ yum clean all && rm -rf /var/cache/* # Enable x509 common name matching for golang 1.15 and beyond. -ENV GODEBUG=x509ignoreCN=0 +# Enable madvdontneed=1, for golang < 1.16 https://github.com/golang/go/issues/42330 +ENV GODEBUG=x509ignoreCN=0,madvdontneed=1 LABEL io.k8s.display-name="OpenShift Base" \ io.k8s.description="This is the base image from which all OpenShift images inherit."