From 254e3ea491c311416385e673c003934cb237d00e Mon Sep 17 00:00:00 2001 From: Matthew Nargol <57093252+MatthewNargol@users.noreply.github.com> Date: Sun, 12 Jan 2025 12:08:22 +0000 Subject: [PATCH] Replaced rsync with cp --- .../build-a-backend/functions/custom-functions/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/[platform]/build-a-backend/functions/custom-functions/index.mdx b/src/pages/[platform]/build-a-backend/functions/custom-functions/index.mdx index 20974c6780b..279b9c80b95 100644 --- a/src/pages/[platform]/build-a-backend/functions/custom-functions/index.mdx +++ b/src/pages/[platform]/build-a-backend/functions/custom-functions/index.mdx @@ -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; }, },