We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7769a3 commit 4c1b2b5Copy full SHA for 4c1b2b5
lib/pip.js
@@ -86,8 +86,13 @@ function installRequirements(
86
}
87
serverless.cli.log(`Docker Image: ${dockerImage}`);
88
89
- // Prepare bind path depending on os platform
90
- const bindPath = getBindPath(servicePath);
+ let bindPath;
+ if (options.dockerInDocker) {
91
+ bindPath = process.env['host_pwd'];
92
+ } else {
93
+ // Prepare bind path depending on os platform
94
+ bindPath = getBindPath(servicePath);
95
+ }
96
97
cmdOptions = ['run', '--rm', '-v', `"${bindPath}:/var/task:z"`];
98
if (options.dockerSsh) {
0 commit comments