diff --git a/make.Dockerfile b/make.Dockerfile index 41ec170f..1b0fff3f 100644 --- a/make.Dockerfile +++ b/make.Dockerfile @@ -2,11 +2,15 @@ ARG GOLANGCI_LINT_VERSION FROM registry.access.redhat.com/ubi8/ubi +ARG GOLANGCI_LINT_VERSION + RUN yum install -y ca-certificates git go-toolset make ENV GOPATH=/go ENV PATH="$GOPATH/bin:${PATH}" -RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GOPATH}/bin ${GOLANGCI_LINT_VERSION} +# Official install URL; the abandoned master-branch script fails checksum verification. +# https://golangci-lint.run/docs/welcome/install/local/#binaries +RUN curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b ${GOPATH}/bin ${GOLANGCI_LINT_VERSION} ADD https://password.corp.redhat.com/RH-IT-Root-CA.crt /etc/pki/ca-trust/source/anchors/ RUN update-ca-trust extract