From 98b86e46aa6a8d8d2a4caff666017fa6986aa4f9 Mon Sep 17 00:00:00 2001 From: Tomas Echeverri Date: Sun, 29 Oct 2023 10:37:45 +0100 Subject: [PATCH] Provide `ENTRYPOINT` option to `docker run` References - https://docs.docker.com/engine/reference/commandline/run/ - https://docs.aws.amazon.com/lambda/latest/dg/nodejs-image.html - https://www.cloudbees.com/blog/understanding-dockers-cmd-and-entrypoint-instructions Signed-off-by: Tomas Echeverri --- .../renderer-aws-lambda/src/create-aws-lambda-renderer.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/renderer-aws-lambda/src/create-aws-lambda-renderer.spec.js b/packages/renderer-aws-lambda/src/create-aws-lambda-renderer.spec.js index cc18dbb5..ad5262ec 100644 --- a/packages/renderer-aws-lambda/src/create-aws-lambda-renderer.spec.js +++ b/packages/renderer-aws-lambda/src/create-aws-lambda-renderer.spec.js @@ -14,7 +14,7 @@ const executeLambda = (event) => dockerArgs: ['-m', '1024M'].concat(DEBUG ? ['-e', 'DEBUG=*'] : []), dockerImage: 'amazon/aws-lambda-nodejs:16', taskDir: PROJECT_ROOT, - handler: 'examples/renderer-aws-lambda/index.handler', + handler: '--entrypoint ["examples/renderer-aws-lambda/index.handler"]', returnSpawnResult: DEBUG, });