feat(scaffolder): use the uid and gid of the parent process for docker
This commit is contained in:
@@ -71,6 +71,9 @@ export const runDockerContainer = async ({
|
||||
return undefined;
|
||||
});
|
||||
});
|
||||
|
||||
const User = `${process.getuid()}:${process.getgid()}`;
|
||||
|
||||
const [{ Error: error, StatusCode: statusCode }] = await dockerClient.run(
|
||||
imageName,
|
||||
args,
|
||||
@@ -85,6 +88,7 @@ export const runDockerContainer = async ({
|
||||
`${await fs.promises.realpath(templateDir)}:/template`,
|
||||
],
|
||||
},
|
||||
User,
|
||||
...createOptions,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user