增强判题和 docker 安全性
This commit is contained in:
1 parent
e3d3fa7eb4
commit
4ab1107627
2 files changed
+3
-1
No files matched your search
@@ -14,7 +14,7 @@ def judge(submission_id, time_limit, memory_limit, test_case_id):
|
||||
command = "%s run --privileged --rm " \
|
||||
"--link mysql " \
|
||||
"-v %s:/var/judger/test_case/:ro " \
|
||||
"-v %s:/var/judger/code/ " \
|
||||
"-v %s:/var/judger/code/:ro " \
|
||||
"-v %s:/var/judger/code/log/ " \
|
||||
"--device /dev/null:/dev/null " \
|
||||
"%s " \
|
||||
|
||||
Reference in new issue
Block a user