2018-09-14 05:35:38 +00:00
|
|
|
FROM golang:1.11-alpine AS vndr
|
2017-05-25 23:26:11 +00:00
|
|
|
RUN apk add --no-cache git
|
2018-04-03 09:37:16 +00:00
|
|
|
# NOTE: hack scripts override VNDR_VERSION to a specific revision
|
2017-05-25 23:26:11 +00:00
|
|
|
ARG VNDR_VERSION=master
|
|
|
|
RUN go get -d github.com/LK4D4/vndr \
|
|
|
|
&& cd /go/src/github.com/LK4D4/vndr \
|
|
|
|
&& git checkout $VNDR_VERSION \
|
|
|
|
&& go install ./
|
2017-06-22 20:15:46 +00:00
|
|
|
WORKDIR /go/src/github.com/moby/buildkit
|
2017-05-25 23:26:11 +00:00
|
|
|
COPY . .
|
2018-03-08 14:42:29 +00:00
|
|
|
# Remove vendor first to workaround https://github.com/LK4D4/vndr/issues/63.
|
|
|
|
RUN rm -rf vendor
|
|
|
|
RUN vndr --verbose --strict
|