mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-11 12:41:35 +00:00
This means that multiple builds will not conflict, so we can remove the lock from the CI. Also quieter when no errors. Some still left to do, only done the ones used in build and CI initially. Some of the others will be cleaned up anyway later. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
12 lines
328 B
Makefile
12 lines
328 B
Makefile
all: usr/local/sbin/iptables
|
|
|
|
usr/local/sbin/iptables: Dockerfile main.ml
|
|
mkdir -p usr/local/sbin
|
|
BUILD=$$( docker build -q . ) && [ -n "$$BUILD" ] && \
|
|
docker run --rm $$BUILD | tar xf - -C usr/local/sbin && \
|
|
docker rmi --no-prune $$BUILD
|
|
|
|
clean:
|
|
rm -rf usr
|
|
docker images -q iptables:build | xargs docker rmi -f || true
|