Skip to content

Commit e8599e5

Browse files
Replaced rsync with cp - Affects JS (#8198)
1 parent 8f04b0f commit e8599e5

File tree

1 file changed

+2
-2
lines changed
  • src/pages/[platform]/build-a-backend/functions/custom-functions

1 file changed

+2
-2
lines changed

src/pages/[platform]/build-a-backend/functions/custom-functions/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ export const sayHelloFunctionHandler = defineFunction(
6161
timeout: Duration.seconds(20), // default is 3 seconds
6262
code: Code.fromAsset(functionDir, {
6363
bundling: {
64-
image: DockerImage.fromRegistry("dummy"),
64+
image: DockerImage.fromRegistry("dummy"), // replace with desired image from AWS ECR Public Gallery
6565
local: {
6666
tryBundle(outputDir: string) {
6767
execSync(
6868
`python3 -m pip install -r ${path.join(functionDir, "requirements.txt")} -t ${path.join(outputDir)} --platform manylinux2014_x86_64 --only-binary=:all:`
6969
);
70-
execSync(`rsync -rLv ${functionDir}/* ${path.join(outputDir)}`);
70+
execSync(`cp -r ${functionDir}/* ${path.join(outputDir)}`);
7171
return true;
7272
},
7373
},

0 commit comments

Comments
 (0)