Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/pip.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,12 @@ function installRequirements(targetFolder, serverless, options) {
serverless.cli.log(`Docker Image: ${dockerImage}`);

// Prepare bind path depending on os platform
const bindPath = getBindPath(serverless, targetFolder);
const bindPath = dockerPathForWin(
options,
getBindPath(serverless, targetFolder)
);

cmdOptions = ['run', '--rm', '-v', quote_single(`${bindPath}:/var/task:z`)];
cmdOptions = ['run', '--rm', '-v', `${bindPath}:/var/task:z`];
if (options.dockerSsh) {
// Mount necessary ssh files to work with private repos
cmdOptions.push(
Expand Down