do not remove build containers

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2016-10-11 16:12:40 +01:00
parent 23ef753e41
commit 47124e8282
11 changed files with 42 additions and 35 deletions

View File

@@ -2,9 +2,10 @@ 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
BUILD=$$( docker build -q . ) && \
[ -n "$$BUILD" ] && \
echo "Built $$BUILD" && \
docker run --rm $$BUILD | tar xf - -C usr/local/sbin
clean:
rm -rf usr