@rlyle1179/serverless-aws-batch 1.0.48 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/docker.js +8 -6
- package/package.json +1 -1
package/lib/docker.js
CHANGED
|
@@ -91,12 +91,14 @@ function buildDockerImage() {
|
|
|
91
91
|
WORKDIR /var/task/${this.serverless.service.service}/
|
|
92
92
|
`;
|
|
93
93
|
// custom ENTRYPOINT due to heap setting - entrypoint copied from original
|
|
94
|
-
if (this.serverless.service.provider.runtime === 'nodejs8.10')
|
|
95
|
-
'ENTRYPOINT ["/var/lang/bin/node", "--expose-gc", "--max-semi-space-size=150", "--max-old-space-size=30000", "/var/runtime/node_modules/awslambda/index.js"]\n'
|
|
96
|
-
)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
94
|
+
if (this.serverless.service.provider.runtime === 'nodejs8.10') {
|
|
95
|
+
dockerFileContents.concat('ENTRYPOINT ["/var/lang/bin/node", "--expose-gc", "--max-semi-space-size=150", "--max-old-space-size=30000", "/var/runtime/node_modules/awslambda/index.js"]\n');
|
|
96
|
+
} else if (this.serverless.service.provider.runtime === 'nodejs10.x') {
|
|
97
|
+
dockerFileContents.concat('ENV NODE_OPTIONS="--max-old-space-size=30000"\n');
|
|
98
|
+
} else {
|
|
99
|
+
dockerFileContents.concat('ENV NODE_OPTIONS="--max-old-space-size=30000"\n');
|
|
100
|
+
}
|
|
101
|
+
|
|
100
102
|
const servicePath = this.serverless.config.servicePath || '';
|
|
101
103
|
const packagePath = path.join(servicePath || '.', '.serverless');
|
|
102
104
|
const dockerFile = path.join(packagePath, 'Dockerfile');
|