@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.
Files changed (2) hide show
  1. package/lib/docker.js +8 -6
  2. 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') dockerFileContents.concat(
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
- if (this.serverless.service.provider.runtime === 'nodejs10.x') dockerFileContents.concat(
98
- 'ENV NODE_OPTIONS="--max-old-space-size=30000"\n'
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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rlyle1179/serverless-aws-batch",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "description": "Serverless Framework Plugin for interacting with AWS Batch",
5
5
  "main": "index.js",
6
6
  "scripts": {