go1.21.6 (released 2024-01-09) includes fixes to the compiler, the runtime, and the crypto/tls, maps, and runtime/pprof packages. See the Go 1.21.6 milestone on our issue tracker for details: - https://github.com/golang/go/issues?q=milestone%3AGo1.21.6+label%3ACherryPickApproved - full diff: https://github.com/golang/go/compare/go1.21.5...go1.21.6 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
19 lines
540 B
Docker
19 lines
540 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
ARG GO_VERSION=1.21.6
|
|
ARG ALPINE_VERSION=3.18
|
|
ARG GOLANGCI_LINT_VERSION=v1.55.2
|
|
|
|
FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION}-alpine AS golangci-lint
|
|
|
|
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS lint
|
|
ENV GOTOOLCHAIN=local
|
|
ENV GO111MODULE=off
|
|
ENV CGO_ENABLED=0
|
|
ENV GOGC=75
|
|
WORKDIR /go/src/github.com/docker/cli
|
|
COPY --link --from=golangci-lint /usr/bin/golangci-lint /usr/bin/golangci-lint
|
|
RUN --mount=type=bind,target=. \
|
|
--mount=type=cache,target=/root/.cache \
|
|
golangci-lint run
|