mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30: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,
|
context: questPath,
|
||||||
src: ['Dockerfile', 'home'],
|
src: ['Dockerfile', 'home'],
|
||||||
},
|
},
|
||||||
{ t: `${config.dockerImage}:${questId}` },
|
{
|
||||||
|
t: `${config.dockerImage}:${questId}`,
|
||||||
|
networkmode: 'none',
|
||||||
|
memory: 10 * 1e6,
|
||||||
|
},
|
||||||
(err, response) => {
|
(err, response) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
reject(err)
|
reject(err)
|
||||||
|
|||||||
Reference in new issue
Block a user