mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-14 01:38:23 +00:00
Model for the others, make sure dependencies are correct and that only the exactly correct things are passed to Docker. No longer copy vendor directory. Signed-off-by: Justin Cormack <justin@specialbusservice.com>
17 lines
357 B
Makefile
17 lines
357 B
Makefile
all: proxy
|
|
|
|
files:
|
|
ls Dockerfile *.go > files
|
|
find libproxy >> files
|
|
printf -- '-C\n../go\n' >> files
|
|
(cd ../go && find vendor) >> files
|
|
|
|
proxy: Dockerfile $(wildcard *.go libproxy/*.go) ../go/vendor/manifest files
|
|
tar cf - -T files | docker build -t proxy:build -
|
|
docker run --rm proxy:build | tar xf -
|
|
|
|
clean:
|
|
rm -rf proxy files
|
|
|
|
.DELETE_ON_ERROR:
|