node-canvas-lambda icon indicating copy to clipboard operation
node-canvas-lambda copied to clipboard

Incorrect Amazon Linux in Dockerfile

Open jkerb8 opened this issue 1 year ago • 2 comments

In the Dockerfile, "FROM amazonlinux:latest" now refers to Amazon Linux 2023, and the Node.JS v16 installation fails on this version. Changing that line to "FROM amazonlinux:2" corrects the issue.

jkerb8 avatar Jun 23 '23 14:06 jkerb8

Hi. Thanks for this. Now i am able to build it. But while running in lambda getting /var/task/node_modules/canvas/build/Release/canvas.node: invalid ELF header

i am tyring to use the chartjs-node-canvas npm in the lambda. Is there any additional steps i need to do.

diasoftwares avatar Jun 26 '23 07:06 diasoftwares

Hi. Thanks for this. Now i am able to build it. But while running in lambda getting /var/task/node_modules/canvas/build/Release/canvas.node: invalid ELF header

i am tyring to use the chartjs-node-canvas npm in the lambda. Is there any additional steps i need to do.

got into the same issue and this solved it

papaya-reader avatar Aug 08 '23 02:08 papaya-reader