diff --git a/session/processes.go b/session/processes.go index 52353fc..a216f78 100644 --- a/session/processes.go +++ b/session/processes.go @@ -68,8 +68,9 @@ func RunHandler(w http.ResponseWriter, r *http.Request, channel map[string]*util var cmd *exec.Cmd if conf.Docker { fileName := filepath.Base(filePath) - cmd = exec.Command("docker", "run", "--rm", "--name", rid, "-v", filePath+":/"+fileName, conf.DockerImageGo, - "--memory", "64M", "--cpus", "0.1", "/"+fileName) + cmd = exec.Command("docker", "run", "--rm", "--name", rid, "-v", filePath+":/"+fileName, + "--memory", "64M", "--cpus", "0.1", + conf.DockerImageGo, "/"+fileName) } else { cmd = exec.Command(filePath) curDir := filepath.Dir(filePath)