Skip to content

[bug] lambda function deployed as container no longer works when image uses bundled output (v5.15.1) #2070

@andrew-pledge-io

Description

@andrew-pledge-io

v5.15.1 includes this change: #1885

We have a function that is deployed as an image where the container build copies the bundled output from serverless-webpack.

Since this change no longer bundles the function, the container build fails.

Reproduction

serverless.yaml:

service: example-service frameworkVersion: "3" plugins: - serverless-webpack custom: webpack: packager: "npm" keepOutputDirectory: true provider: name: aws ecr: images: app_image: path: ./ functions: exampleFn: image: name: app_image command: - app.handler timeout: 300

Dockerfile:

FROM public.ecr.aws/lambda/nodejs:18 COPY ./build/service ./ CMD ["app.handler"] 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions