Skip to content

Commit

Permalink
Dockerfile: make -mod=vendor opportunisitic (#999)
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed May 30, 2020
1 parent f28f92f commit 5a73cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ WORKDIR /build/
ADD . /build/
ARG CLAIR_VERSION=dev
RUN go build \
-mod=vendor \
`test -d vendor && echo -mod=vendor` \
-ldflags="-X main.Version=${CLAIR_VERSION}" \
./cmd/clair
RUN go build \
-mod=vendor \
`test -d vendor && echo -mod=vendor` \
./cmd/clairctl

FROM docker.io/library/alpine:3.11 AS final
Expand Down

0 comments on commit 5a73cb4

Please sign in to comment.