Run Linux docker images with /project as cwd

This commit is contained in:
Yannick Jadoul
2020-07-20 18:07:45 +02:00
parent 29b0cdb08a
commit 2610f3220a
+2 -2
View File
@@ -110,8 +110,8 @@ def build(options: BuildOptions) -> None:
continue
try:
with DockerContainer(docker_image, simulate_32_bit=platform_tag.endswith('i686')) as docker:
docker.copy_into(Path.cwd(), Path('/project'))
with DockerContainer(docker_image, simulate_32_bit=platform_tag.endswith('i686'), cwd='/project') as docker:
docker.copy_into(Path.cwd(), PurePath('/project'))
if options.before_all:
env = docker.get_environment()