You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What will happen?
It will fail miserably by trying to bundle python code with webpack.
Why?
Because provider.runtime: nodejs18.x doesn't mean that every Dockerfile in provider.ecr.images uses FROM public.ecr.aws/lambda/node:18
But it's silently assumed.
I.e. not only image.urishould be excluded from bundling, but any image that is not derived from public.ecr.aws/lambda/node
Just in case, a sample of ./docker/python/Dockerfile:
FROM public.ecr.aws/lambda/python:3.10
COPY app.py .
CMD ["app.handler"]
The text was updated successfully, but these errors were encountered:
It's kinda the same problem that was partially fixed in #877
Let's consider a serverless.yml
What will happen?
It will fail miserably by trying to bundle python code with webpack.
Why?
Because
provider.runtime: nodejs18.x
doesn't mean that everyDockerfile
inprovider.ecr.images
usesFROM public.ecr.aws/lambda/node:18
But it's silently assumed.
I.e. not only
image.uri
should be excluded from bundling, but any image that is not derived frompublic.ecr.aws/lambda/node
Just in case, a sample of
./docker/python/Dockerfile
:The text was updated successfully, but these errors were encountered: