diff --git a/build.sh b/build.sh index c4cac2a..05a1e2d 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,7 @@ #!/bin/bash + cd /project/target if [ -f package.json ]; then - npm install -fi \ No newline at end of file + max_memory=${MAX_ALLOWED_MEMORY:-750} + npm install --max-old-space-size=${max_memory} +fi