2021-07-22 08:48:09 -04:00
|
|
|
# syntax=docker/dockerfile:1.3
|
2017-05-02 15:10:03 -04:00
|
|
|
|
2021-10-08 09:18:20 -04:00
|
|
|
ARG GO_VERSION=1.16.9
|
2021-08-05 02:44:16 -04:00
|
|
|
ARG GOLANGCI_LINT_VERSION=v1.23.8
|
2017-05-02 15:10:03 -04:00
|
|
|
|
2021-08-05 02:44:16 -04:00
|
|
|
FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION}-alpine AS golangci-lint
|
2017-05-02 15:10:03 -04:00
|
|
|
|
2021-08-05 02:44:16 -04:00
|
|
|
FROM golang:${GO_VERSION}-alpine AS lint
|
|
|
|
ENV GO111MODULE=off
|
|
|
|
ENV CGO_ENABLED=0
|
|
|
|
ENV GOGC=75
|
2019-04-02 11:27:12 -04:00
|
|
|
WORKDIR /go/src/github.com/docker/cli
|
2021-08-05 02:44:16 -04:00
|
|
|
COPY --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
|