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
{{ message }}
This repository was archived by the owner on Apr 29, 2024. It is now read-only.
Running "docker run --rm -v /Users/shauncutts/Library/Caches/serverless-python-requirements/86c924ff078f80e03d14d56c584f87f0cbbbdb7c8193b653db2fcbfe2d8fc440_x86_64_slspyc:/var/task:z -v /Users/shauncutts/Library/Caches/serverless-python-requirements/downloadCacheslspyc:/var/useDownloadCache:z -u 0 sls-py-reqs-custom python3.10 -m pip install -t /var/task/ -r /var/task/requirements.txt --cache-dir /var/useDownloadCache" failed with: "entrypoint requires the handler name to be the first argument"
However, when I try to put in an entrypoint into the dockerfile:
FROM public.ecr.aws/lambda/python:3.10-x86_64
RUN yum install -y libffi libffi-devel postgresql-devel postgresql-libs gcc
ENTRYPOINT [ "/bin/bash", "-c" ]
This builds, but the resulting archive doesn't have any dependencies from requirements:
I have a Dockerfile:
And sls configuration:
This gives the error:
However, when I try to put in an entrypoint into the dockerfile:
This builds, but the resulting archive doesn't have any dependencies from requirements:
What are the requirements for the Dockerfile? How does serverless know where to take the libraries from and how come they don't end up in the archive?
The text was updated successfully, but these errors were encountered: