2023-02-23 00:45:10 +08:00
|
|
|
# syntax=docker/dockerfile:1
|
2019-03-23 04:29:28 +08:00
|
|
|
|
2023-10-17 22:43:14 +08:00
|
|
|
ARG GO_VERSION=1.21.3
|
2021-09-03 05:11:05 +08:00
|
|
|
|
|
|
|
FROM golang:${GO_VERSION}-alpine
|
2022-04-01 17:16:04 +08:00
|
|
|
RUN apk add --no-cache git gcc musl-dev
|
2023-02-22 21:38:17 +08:00
|
|
|
RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.51.1
|
2019-04-25 10:29:56 +08:00
|
|
|
WORKDIR /go/src/github.com/docker/buildx
|
2021-02-17 15:42:08 +08:00
|
|
|
RUN --mount=target=/go/src/github.com/docker/buildx --mount=target=/root/.cache,type=cache \
|
|
|
|
golangci-lint run
|