Skip to content

Commit

Permalink
Replaced rsync with cp
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewNargol authored Jan 12, 2025
1 parent e5ec8b9 commit 254e3ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ export const sayHelloFunctionHandler = defineFunction(
timeout: Duration.seconds(20), // default is 3 seconds
code: Code.fromAsset(functionDir, {
bundling: {
image: DockerImage.fromRegistry("dummy"),
image: DockerImage.fromRegistry("dummy"), // replace with desired image from AWS ECR Public Gallery
local: {
tryBundle(outputDir: string) {
execSync(
`python3 -m pip install -r ${path.join(functionDir, "requirements.txt")} -t ${path.join(outputDir)} --platform manylinux2014_x86_64 --only-binary=:all:`
);
execSync(`rsync -rLv ${functionDir}/* ${path.join(outputDir)}`);
execSync(`cp -r ${functionDir}/* ${path.join(outputDir)}`);
return true;
},
},
Expand Down

0 comments on commit 254e3ea

Please sign in to comment.