Skip to content

Commit eb1a202

Browse files
author
Marc Zampetti
committed
Updated method for setting docker image name based on feedback from PR.
1 parent 4489ec4 commit eb1a202

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ class ServerlessPythonRequirements {
6868
if (this.custom().dockerizePip) {
6969
cmd = 'docker';
7070

71-
let image = `lambci/lambda:build-${runtime}`
72-
if (this.custom().dockerImage != null) {
73-
image = this.custom().dockerImage
74-
}
71+
const image = this.custom().dockerImage || `lambci/lambda:build-${runtime}`;
7572
this.serverless.cli.log("Docker Image: " + image)
7673

7774
options = [

0 commit comments

Comments
 (0)