harbor/make/photon/clair/Dockerfile.binary

8 lines
290 B
Docker
Raw Normal View History

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