@rlyle1179/serverless-aws-batch 1.0.82 → 1.0.83
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 +3 -1
- package/package.json +1 -1
package/lib/docker.js
CHANGED
|
@@ -88,6 +88,8 @@ function buildDockerImage() {
|
|
|
88
88
|
FROM justinram11/lambda:nodejs12.x
|
|
89
89
|
USER root
|
|
90
90
|
COPY --from=builder /tmp /var/task/
|
|
91
|
+
RUN ls /var/task/
|
|
92
|
+
RUN rm -rf /tmp/*
|
|
91
93
|
COPY --from=builder /usr/bin/tar /usr/bin/
|
|
92
94
|
COPY --from=builder /usr/bin/gzip /usr/bin/
|
|
93
95
|
COPY --from=builder /usr/bin/curl /usr/bin/
|
|
@@ -95,7 +97,7 @@ function buildDockerImage() {
|
|
|
95
97
|
COPY --from=builder /usr/lib/* /usr/lib/
|
|
96
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
|
|
97
99
|
RUN cd /tmp && tar xf node16.tar.gz && cp -rf node-v16.20.0-linux-x64/* /var/lang/
|
|
98
|
-
ENV NODE_PATH=/var/lang/lib/node_modules
|
|
100
|
+
ENV NODE_PATH=/var/lang/lib/node_modules:/var/task/node_modules
|
|
99
101
|
RUN node -v
|
|
100
102
|
RUN rm -rf /tmp/*
|
|
101
103
|
USER sbx_user1051
|