feat: limit networking and memory during build

This commit is contained in:
wancat committed 2023-11-16 21:11:32 +08:00
1 parent 7b1591a6e3
commit cd22988a49
1 file changed
+5 -1
+5 -1
View File
@@ -86,7 +86,11 @@ export function buildQuestImage(questPath, questId) {
context: questPath,
src: ['Dockerfile', 'home'],
},
{ t: `${config.dockerImage}:${questId}` },
{
t: `${config.dockerImage}:${questId}`,
networkmode: 'none',
memory: 10 * 1e6,
},
(err, response) => {
if (err) {
reject(err)