When building multi-stage, copy over the vendor folder for licensing reasons

Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
This commit is contained in:
Mikolaj Pawlikowski
2019-03-13 13:59:43 +00:00
committed by GitHub
parent 6cd12ef2d5
commit 6de72deee0
+2
View File
@@ -20,6 +20,8 @@ RUN make bin/goldpinger
FROM scratch
COPY --from=builder /go/src/github.com/bloomberg/goldpinger/bin/goldpinger /goldpinger
# for lincensing reasons, we include all sources going into the binary
COPY --from=builder /go/src/github.com/bloomberg/goldpinger/vendor /goldpinger-vendor-sources
COPY ./static /static
ENTRYPOINT ["/goldpinger", "--static-file-path", "/static"]