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 e5bf50312cc..e6c2a0d0d23 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; }, },