File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,14 @@ class ServerlessPythonRequirements {
47
47
if ( options . dockerizePip === 'non-linux' ) {
48
48
options . dockerizePip = process . platform !== 'linux' ;
49
49
}
50
+ if ( ! options . dockerizePip && ( options . dockerSsh || options . dockerImage || options . dockerFile ) ) {
51
+ if ( ! this . warningLogged ) {
52
+ this . serverless . cli . log (
53
+ 'WARNING: You provided a docker related option but dockerizePip is set to false.'
54
+ ) ;
55
+ this . warningLogged = true ;
56
+ }
57
+ }
50
58
if ( options . dockerImage && options . dockerFile ) {
51
59
throw new Error (
52
60
'Python Requirements: you can provide a dockerImage or a dockerFile option, not both.'
@@ -56,14 +64,6 @@ class ServerlessPythonRequirements {
56
64
const defaultImage = `lambci/lambda:build-${ this . serverless . service . provider . runtime } ` ;
57
65
options . dockerImage = options . dockerImage || defaultImage ;
58
66
}
59
- if ( ! options . dockerizePip && ( options . dockerSsh || options . dockerImage || options . dockerFile ) ) {
60
- if ( ! this . warningLogged ) {
61
- this . serverless . cli . log (
62
- 'WARNING: You provided a docker related option but dockerizePip is set to false.'
63
- ) ;
64
- this . warningLogged = true ;
65
- }
66
- }
67
67
return options ;
68
68
}
69
69
You can’t perform that action at this time.
0 commit comments