Files
linuxkit/alpine/packages/diagnostics/Makefile
2016-12-20 15:00:08 -08:00

21 lines
574 B
Makefile

all: usr/bin/diagnostics-server
DEPS=Dockerfile $(wildcard *.go)
# Tag: 02a04b2dc262195773b29125daebca0eebd97845
LINT_IMAGE=mobylinux/alpine-go-lint@sha256:3009197c25294d87a7e81a53493666de47ed2b55a5bd283eabad4b876ea64559
usr/bin/diagnostics-server: $(DEPS) ../vendor/manifest lint
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
lint:
docker run --rm -v $(PWD):/src $(LINT_IMAGE)
.DELETE_ON_ERROR: