From 2db9d9a089c1f3212f23b60f39b4e617baae0cf1 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Fri, 13 Mar 2020 15:08:10 +0000 Subject: [PATCH] The docker container needs a main process --- cibuildwheel/linux.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cibuildwheel/linux.py b/cibuildwheel/linux.py index 9285dd32..64c16b6e 100644 --- a/cibuildwheel/linux.py +++ b/cibuildwheel/linux.py @@ -100,7 +100,9 @@ def build(project_dir, output_dir, test_command, before_test, test_requires, tes '--name', container_name, '-i', '-v', '/:/host', # ignored on CircleCI - docker_image], check=True) + docker_image, + '/bin/bash'], check=True) + subprocess.run(['docker', 'cp', os.path.abspath(project_dir) + '/.', container_name + ':/project'], check=True)