From 70c859f774fdb87f14bb794a401a17a91a208b63 Mon Sep 17 00:00:00 2001 From: 1computer1 Date: Fri, 15 Mar 2019 01:03:25 -0400 Subject: [PATCH] Run with a user --- src/struct/LanguageHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/struct/LanguageHandler.js b/src/struct/LanguageHandler.js index f6e948c..59068de 100644 --- a/src/struct/LanguageHandler.js +++ b/src/struct/LanguageHandler.js @@ -64,7 +64,7 @@ class LanguageHandler extends AkairoHandler { const name = `comp_iler-${message.id}-${Date.now()}`; const { id, env } = language.runWith(options); 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}`, ...Object.entries(env).map(([k, v]) => `-e${k}=${v}`), `1computer1/comp_iler:${id}`,