@rlyle1179/serverless-aws-batch 1.1.4 → 1.1.6

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 +3 -9
  2. package/package.json +1 -1
package/lib/docker.js CHANGED
@@ -91,22 +91,16 @@ function buildDockerImage() {
91
91
  // - Function Timeout and Function Memory are set by Env Variables on the Job Definition
92
92
  // - Access Key and Secret are unset to that we use the role on the container that AWS provides
93
93
  const dockerFileContents = `
94
- FROM justinram11/lambda:build-nodejs12.x AS builder
94
+ FROM 368461407828.dkr.ecr.us-east-1.amazonaws.com/build-batch-image-base:latest AS builder
95
95
  USER root
96
96
  RUN mkdir -p /tmp/task/
97
97
  COPY ${this.serverless.service.service}.zip /tmp/task
98
98
  RUN cd /tmp/task && unzip -q ${this.serverless.service.service}.zip && rm ${this.serverless.service.service}.zip
99
- RUN mkdir -p /tmp/node16/
100
- RUN curl -sL https://develop.apricity-health.com/assets/node-v16.20.0-linux-x64.tar.gz --output /tmp/node.tar.gz
101
- RUN cd /tmp && tar xf node.tar.gz && cp -rf node-v16.20.0-linux-x64/* /tmp/node16/
102
99
  ${addtionalBuildCommands}
103
-
104
- FROM justinram11/lambda:nodejs12.x
100
+
101
+ FROM 368461407828.dkr.ecr.us-east-1.amazonaws.com/batch-image-base:latest
105
102
  USER root
106
103
  COPY --from=builder /tmp/task /var/task/
107
- COPY --from=builder /tmp/node16 /var/lang/
108
- ENV NODE_PATH=/var/lang/lib/node_modules:/var/task/node_modules:/var/runtime/node_modules
109
- RUN node -v
110
104
  ${additionalCommands}
111
105
  RUN rm -rf /tmp/*
112
106
  USER sbx_user1051
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rlyle1179/serverless-aws-batch",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Serverless Framework Plugin for interacting with AWS Batch",
5
5
  "main": "index.js",
6
6
  "scripts": {