@rlyle1179/serverless-aws-batch 1.0.83 → 1.0.85

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 +10 -14
  2. package/package.json +1 -1
package/lib/docker.js CHANGED
@@ -82,22 +82,18 @@ function buildDockerImage() {
82
82
  USER root
83
83
 
84
84
  ${additionalRunCommands}
85
- COPY ${this.serverless.service.service}.zip /tmp
86
- RUN cd /tmp && unzip -q ${this.serverless.service.service}.zip && rm ${this.serverless.service.service}.zip
87
-
85
+ RUN mkdir -p /tmp/task/
86
+ COPY ${this.serverless.service.service}.zip /tmp/task
87
+ RUN cd /tmp/task && unzip -q ${this.serverless.service.service}.zip && rm ${this.serverless.service.service}.zip
88
+ RUN mkdir -p /tmp/node16/
89
+ RUN curl -sL https://nodejs.org/download/release/v16.20.0/node-v16.20.0-linux-x64.tar.gz --output /tmp/node.tar.gz
90
+ RUN cd /tmp && tar xf node.tar.gz && cp -rf node-v16.20.0-linux-x64/* /tmp/node16/
91
+
88
92
  FROM justinram11/lambda:nodejs12.x
89
93
  USER root
90
- COPY --from=builder /tmp /var/task/
91
- RUN ls /var/task/
92
- RUN rm -rf /tmp/*
93
- COPY --from=builder /usr/bin/tar /usr/bin/
94
- COPY --from=builder /usr/bin/gzip /usr/bin/
95
- COPY --from=builder /usr/bin/curl /usr/bin/
96
- COPY --from=builder /usr/lib64/* /usr/lib64/
97
- COPY --from=builder /usr/lib/* /usr/lib/
98
- RUN curl -sL https://nodejs.org/download/release/v16.20.0/node-v16.20.0-linux-x64.tar.gz --output /tmp/node16.tar.gz
99
- RUN cd /tmp && tar xf node16.tar.gz && cp -rf node-v16.20.0-linux-x64/* /var/lang/
100
- ENV NODE_PATH=/var/lang/lib/node_modules:/var/task/node_modules
94
+ COPY --from=builder /tmp/task /var/task/
95
+ COPY --from=builder /tmp/node16 /var/lang/
96
+ ENV NODE_PATH=/var/lang/lib/node_modules:/var/task/node_modules:/var/runtime/node_modules
101
97
  RUN node -v
102
98
  RUN rm -rf /tmp/*
103
99
  USER sbx_user1051
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rlyle1179/serverless-aws-batch",
3
- "version": "1.0.83",
3
+ "version": "1.0.85",
4
4
  "description": "Serverless Framework Plugin for interacting with AWS Batch",
5
5
  "main": "index.js",
6
6
  "scripts": {