mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
feat: limit networking and memory during build
This commit is contained in:
1 parent
7b1591a6e3
commit
cd22988a49
1 file changed
+5
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user