harbor/make/photon/clair/Dockerfile.binary

8 lines
276 B
Docker
Raw Normal View History

FROM golang:1.13.4
2017-12-09 19:53:12 +01:00
ADD . /go/src/github.com/quay/clair/
WORKDIR /go/src/github.com/quay/clair/
2017-12-09 19:53:12 +01:00
RUN export CLAIR_VERSION=$(git describe --tag --always --dirty) GO111MODULE=on && \
go build -ldflags "-X github.com/quay/clair/pkg/version.Version=$CLAIR_VERSION" ./cmd/clair