From 78252a439c5abd6bf2621cd9462cb0b741b48878 Mon Sep 17 00:00:00 2001 From: jpic Date: Sat, 24 Apr 2021 10:41:49 +0200 Subject: [PATCH] Use buildah copy to support workingdir --- shlax/targets/buildah.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shlax/targets/buildah.py b/shlax/targets/buildah.py index 60617ab..da68553 100644 --- a/shlax/targets/buildah.py +++ b/shlax/targets/buildah.py @@ -188,7 +188,7 @@ class Buildah(Target): return await self.parent.mkdir(*[self.path(path) for path in paths]) async def copy(self, *args): - return await self.parent.copy(*args[:-1], self.path(args[-1])) + return await self.parent.exec('buildah', 'copy', self.ctr, *args) async def write(self, path, content): return await self.write(path, content)