@rlyle1179/serverless-aws-batch 1.0.76 → 1.0.78

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 +4 -3
  2. package/package.json +1 -1
package/lib/docker.js CHANGED
@@ -87,12 +87,13 @@ function buildDockerImage() {
87
87
 
88
88
  FROM justinram11/lambda:nodejs12.x
89
89
  COPY --from=builder /tmp /var/task/
90
- COPY --from=builder /usr/bin/yum /usr/bin/
91
90
  COPY --from=builder /usr/bin/curl /usr/bin/
92
91
  COPY --from=builder /usr/lib64/* /usr/lib64/
93
92
  COPY --from=builder /usr/lib/* /usr/lib/
94
- RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash -
95
- RUN yum install nodejs
93
+ RUN curl -sL https://nodejs.org/download/release/v16.20.0/node-v16.20.0-linux-x64.tar.gz --output /tmp/node16.tar.gz
94
+ RUN cd /tmp && tar xvf node16.tar.gz && cp -rf node-v16.20.0-linux-x64/* /var/lang/
95
+ RUN rm -rf /tmp/node16.tar.gz && rm -rf /tmp/node-v16.20.0-linux-x64
96
+ ENV NODE_PATH=/var/lang/lib/node_modules
96
97
  RUN node -v
97
98
  RUN rm -rf /tmp/*
98
99
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rlyle1179/serverless-aws-batch",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
4
4
  "description": "Serverless Framework Plugin for interacting with AWS Batch",
5
5
  "main": "index.js",
6
6
  "scripts": {