Open zoemrob opened 2 years ago
Only other relevant info: I'm running on an Apple Silicon M1, which is why I'm passing in the --platform
argument.
Is this error specific to 1 file or happens with all even the simplest .txt files?
I see the same issue. Built on Apple M1 Mac, using the linux_amd64 platform, and the error arises within Lambda.
I deployed to AWS. Please help me @vladgolubev
FROM public.ecr.aws/shelf/lambda-libreoffice-base:7.4-node16-x86_64
COPY index.js package.json ${LAMBDA_TASK_ROOT}
# dependency not supplied by lambda-libreoffice-base image
RUN yum install java-1.8.0-openjdk-devel -y
RUN npm install
CMD [ "index.handler" ]
Adding the java-1.8.0-openjdk-devel
package did allow me to run this.
FROM public.ecr.aws/shelf/lambda-libreoffice-base:7.4-node16-x86_64 COPY index.js package.json ${LAMBDA_TASK_ROOT} # dependency not supplied by lambda-libreoffice-base image RUN yum install java-1.8.0-openjdk-devel -y RUN npm install CMD [ "index.handler" ]
Adding the
java-1.8.0-openjdk-devel
package did allow me to run this.
Thanks! It works well
So I believe I followed the instructions, not sure if I missed something though.
This is my Dockerfile I have my app code in index.js. I'm running
docker build --platform linux/x86_64 -t convert-to-pdf .
and then deploying that image to my ECR registry and deploying that on my lambda function. It's all working, except when I call theconvertTo
method I end up getting this chunk of errors:I haven't seen anyone else having this issue, so I'm unsure what the problem could be.