FROM golang:1.9.5-alpine3.6 RUN apk add -U git make bash coreutils ca-certificates curl ARG VNDR_SHA=a6e196d8b4b0cbbdc29aebdb20c59ac6926bb384 RUN go get -d github.com/LK4D4/vndr && \ cd /go/src/github.com/LK4D4/vndr && \ git checkout -q "$VNDR_SHA" && \ go build -v -o /usr/bin/vndr . && \ rm -rf /go/src/* /go/pkg/* /go/bin/* ARG ESC_SHA=58d9cde84f237ecdd89bd7f61c2de2853f4c5c6e RUN go get -d github.com/mjibson/esc && \ cd /go/src/github.com/mjibson/esc && \ git checkout -q "$ESC_SHA" && \ go build -v -o /usr/bin/esc . && \ rm -rf /go/src/* /go/pkg/* /go/bin/* # FIXME(vdemeester) only used for e2e, could be in e2e special image in the future ARG NOTARY_VERSION=v0.6.0 RUN export URL=https://github.com/theupdateframework/notary/releases/download; \ curl -Ls $URL/${NOTARY_VERSION}/notary-Linux-amd64 -o /usr/local/bin/notary && \ chmod +x /usr/local/bin/notary ENV CGO_ENABLED=0 \ PATH=$PATH:/go/src/github.com/docker/cli/build \ DISABLE_WARN_OUTSIDE_CONTAINER=1 WORKDIR /go/src/github.com/docker/cli CMD sh