2022-03-10 09:05:44 +08:00
|
|
|
# syntax=docker/dockerfile:1.4
|
2019-03-23 04:29:28 +08:00
|
|
|
|
2022-04-06 07:59:22 +08:00
|
|
|
ARG GO_VERSION=1.18
|
2021-09-03 05:11:05 +08:00
|
|
|
|
|
|
|
FROM golang:${GO_VERSION}-alpine
|
2022-04-06 08:24:37 +08:00
|
|
|
RUN apk add --no-cache git gcc musl-dev yamllint
|
|
|
|
RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.45.2
|
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
|
|
|
|
RUN --mount=target=/go/src/github.com/docker/buildx --mount=target=/root/.cache,type=cache \
|
2021-09-03 05:11:05 +08:00
|
|
|
yamllint -c .yamllint.yml --strict .
|