From 5e82d2c9426910247bd836f5de8cb7243cc5ebff Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 3 Dec 2020 12:51:53 +0100 Subject: bin/compose: use buildkit and mount local dirs --- bin/compose | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/compose') diff --git a/bin/compose b/bin/compose index e4a5dbd..70c3072 100755 --- a/bin/compose +++ b/bin/compose @@ -6,5 +6,9 @@ exec docker run \ --net host \ --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \ --mount type=bind,src="$cwd",dst="$container_cwd" \ + --mount type=bind,src=/,dst=/rootfs \ + --env COMPOSE_DOCKER_CLI_BUILD=1 \ + --env DOCKER_BUILDKIT=1 \ + --env HERE="$cwd" \ -w "$container_cwd" \ docker/compose:latest $@ -- cgit 1.4.1