buildkit/hack/dockerfiles/lint.buildkit.Dockerfile

11 lines
375 B
Docker

# syntax=docker/dockerfile:1.0-experimental
FROM golang:1.12-alpine
RUN apk add --no-cache git
RUN go get -u gopkg.in/alecthomas/gometalinter.v1 \
&& mv /go/bin/gometalinter.v1 /go/bin/gometalinter \
&& gometalinter --install
WORKDIR /go/src/github.com/moby/buildkit
RUN --mount=target=/go/src/github.com/moby/buildkit \
gometalinter --config=gometalinter.json ./...