go1.17.10 (released 2022-05-10) includes security fixes to the syscall package, as well as bug fixes to the compiler, runtime, and the crypto/x509 and net/http/httptest packages. See the Go 1.17.10 milestone on the issue tracker for details: https://github.com/golang/go/issues?q=milestone%3AGo1.17.10+label%3ACherryPickApproved Full diff: http://github.com/golang/go/compare/go1.17.9...go1.17.10 Includes fixes for: - CVE-2022-29526 (http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29526); (description at https://go.dev/issue/52313). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
25 lines
766 B
Docker
25 lines
766 B
Docker
# syntax=docker/dockerfile:1.3
|
|
|
|
ARG GO_VERSION=1.17.10
|
|
ARG GOLANGCI_LINTER_SHA="v1.21.0"
|
|
|
|
FROM golang:${GO_VERSION}-alpine AS build
|
|
ENV CGO_ENABLED=0
|
|
RUN apk add --no-cache git
|
|
ARG GOLANGCI_LINTER_SHA
|
|
ARG GO111MODULE=on
|
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
|
--mount=type=cache,target=/go/pkg/mod \
|
|
go get github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINTER_SHA}
|
|
|
|
FROM golang:${GO_VERSION}-alpine AS lint
|
|
ENV GO111MODULE=off
|
|
ENV CGO_ENABLED=0
|
|
ENV DISABLE_WARN_OUTSIDE_CONTAINER=1
|
|
COPY --from=build /go/bin/golangci-lint /usr/local/bin
|
|
WORKDIR /go/src/github.com/docker/cli
|
|
ENV GOGC=75
|
|
ENTRYPOINT ["/usr/local/bin/golangci-lint"]
|
|
CMD ["run", "--config=.golangci.yml"]
|
|
COPY . .
|