Run with a user
This commit is contained in:
parent
47f5a78799
commit
70c859f774
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class LanguageHandler extends AkairoHandler {
|
||||||
const name = `comp_iler-${message.id}-${Date.now()}`;
|
const name = `comp_iler-${message.id}-${Date.now()}`;
|
||||||
const { id, env } = language.runWith(options);
|
const { id, env } = language.runWith(options);
|
||||||
const proc = childProcess.spawn('docker', [
|
const proc = childProcess.spawn('docker', [
|
||||||
'run', '--rm', `--name=${name}`,
|
'run', '--rm', `--name=${name}`, '-u1000', '-w/tmp/',
|
||||||
'--net=none', `--cpus=${this.client.config.cpus}`, `-m=${this.client.config.memory}`,
|
'--net=none', `--cpus=${this.client.config.cpus}`, `-m=${this.client.config.memory}`,
|
||||||
...Object.entries(env).map(([k, v]) => `-e${k}=${v}`),
|
...Object.entries(env).map(([k, v]) => `-e${k}=${v}`),
|
||||||
`1computer1/comp_iler:${id}`,
|
`1computer1/comp_iler:${id}`,
|
||||||
|
|
Loading…
Reference in a new issue