More Makefile enhancements (#569)

Allows us to make use of of make's target deps instead of re-execing
make in our build target just for custom, one-shot environment changes.

Keeps e2e bin in bin/e2e/virtual-kubelet.
This commit is contained in:
Brian Goff
2019-04-15 16:03:45 -07:00
committed by GitHub
parent 2521ec1cce
commit 6cb323eec2
4 changed files with 19 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
COPY . /go/src/github.com/virtual-kubelet/virtual-kubelet
WORKDIR /go/src/github.com/virtual-kubelet/virtual-kubelet
ARG BUILD_TAGS="netgo osusergo"
ARG BUILD_TAGS=""
RUN make VK_BUILD_TAGS="${BUILD_TAGS}" build
RUN cp bin/virtual-kubelet /usr/bin/virtual-kubelet