Files
linuxkit/alpine/packages/diagnostics/Makefile
Justin Cormack cfbdc7d067 do not remove build containers
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-10-11 16:12:40 +01:00

15 lines
359 B
Makefile

all: usr/bin/diagnostics-server
DEPS=Dockerfile $(wildcard *.go)
usr/bin/diagnostics-server: $(DEPS) ../vendor/manifest
BUILD=$$( tar cf - $(DEPS) -C .. vendor | docker build -q - ) && \
[ -n "$$BUILD" ] && \
echo "Built $$BUILD" && \
docker run --rm --net=none $$BUILD | tar xf - -C usr/bin
clean:
rm -f usr/bin/diagnostics-server
.DELETE_ON_ERROR: