Skip to content

ENOENT: no such file or directory, open '/opt/lo.tar.br' #303

@cesarpachon

Description

@cesarpachon

hello! I am getting the error ENOENT: no such file or directory, open '/opt/lo.tar.br'
I am using the docker image, not the deprecated libreoffice-lambda-layer, so I am assuming lo.tar.br is included in the docker (that's right?)
I am trying to use the convertTo method.
am I missing something in my configuration?

this is my Dockerfile:

FROM public.ecr.aws/shelf/lambda-libreoffice-base:7.4-node16-x86_64
COPY mybundle.js ${LAMBDA_TASK_ROOT}
# our bundle excludes AWS-SDK, and it is not included in the libreoffice base docker image!
# we need to install it
COPY package.json ${LAMBDA_TASK_ROOT}
RUN npm install
CMD [ "mybundle.handler" ]

This is the CDK code:

   this.libreofficeFunction = new lambda.DockerImageFunction(this, 'reporterDocker'+this.env, {
      code: lambda.DockerImageCode.fromImageAsset('reporterdocker'),
      functionName: `reporterDocker${this.env}`,
      memorySize: 1024,
      ephemeralStorageSize: Size.mebibytes(1024),
      timeout: Duration.seconds(60),

   });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions