2022-03-10 09:05:44 +08:00
|
|
|
# syntax=docker/dockerfile:1.4
|
2019-03-23 04:29:28 +08:00
|
|
|
|
2022-08-11 08:04:41 +08:00
|
|
|
ARG GO_VERSION=1.19
|
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
|
2022-08-11 08:09:55 +08:00
|
|
|
RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.48.0
|
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
|