Use buildah copy to support workingdir

This commit is contained in:
jpic
2021-04-24 13:12:19 +02:00
parent ae2aa62d0e
commit 78252a439c
+1 -1
View File
@@ -188,7 +188,7 @@ class Buildah(Target):
return await self.parent.mkdir(*[self.path(path) for path in paths]) return await self.parent.mkdir(*[self.path(path) for path in paths])
async def copy(self, *args): 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): async def write(self, path, content):
return await self.write(path, content) return await self.write(path, content)