@rlyle1179/serverless-aws-batch 1.1.11 → 1.1.12
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
|
@@ -87,11 +87,13 @@ function buildDockerImage() {
|
|
|
87
87
|
)
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
let buildImage = _.get(this.serverless.service,"custom.awsBatch.buildImage", "368461407828.dkr.ecr.us-east-1.amazonaws.com/build-batch-image-base:latest" );
|
|
91
|
+
|
|
90
92
|
// Override some of the default lambci environmental variables.
|
|
91
93
|
// - Function Timeout and Function Memory are set by Env Variables on the Job Definition
|
|
92
94
|
// - Access Key and Secret are unset to that we use the role on the container that AWS provides
|
|
93
95
|
const dockerFileContents = `
|
|
94
|
-
FROM
|
|
96
|
+
FROM ${buildImage} AS builder
|
|
95
97
|
USER root
|
|
96
98
|
RUN mkdir -p /tmp/task/
|
|
97
99
|
COPY ${this.serverless.service.service}.zip /tmp/task
|