-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zappa with docker and pipenv not working #1253
Comments
Are you run a This command changes the zappa_settings.json file to py. I don't know exactly, but I've seen that error before, and I think I solved it by writing that sentence. |
Hi @LeonardoFurtado |
How about adding something about |
@kyaryunha the problem was not with |
Are there any updates on this? We spent the better part of yesterday troubleshooting the same issue, but trying to work with python 3.11 instead of 3.8. Following Ian's blog mentioned above we couldn't get this method to work with flask but could run basic python scripts using the lambda handler, but never get the flask apps to work correctly. @LeonardoFurtado do you have updates to this repo with the solution by chance? |
Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed. |
Hi there! Unfortunately, this Issue was automatically closed as it had not seen any activity in at least 100 days. If the Issue is still relevant to the latest version of Zappa, please open a new Issue. |
Context
I am trying to use zappa with docker and pipenv, i followed the link on readme to https://ianwhitestone.work/zappa-serverless-docker/ and tried all steps, but there is a line that shows a change we need to do in dockerfile to work with pipenv:
Note, if you’re pipenv instead of poetry, you can run: pip install pipenv && pipenv install. Or if you have a requirements.txt, you can run: RUN pip install -r requirements.txt.
But it doesn't work. If you do it you will receive a
zappa not found
after run docker build.So I tried to create my own Dockerfile with some changes and this is what I'm using:
but it is not working...
I use the command
docker build -t lambda-docker-flask:latest .
and It works fine, but when I try to rundocker run -p 9000:8080 lambda-docker-flask:latest
I received the following error:I was googling a lot about docker and some insights was to change
CMD ["handler.lambda_handler"]
toCMD handler.lambda_handler
Expected Behavior
Run application on docker with zappa setup to lambda
Actual Behavior
broken
Possible Fix
change dockerfile suggested
I already created a repo with the code used on tutorial linked on zappa readme with the dockerfile changed: https://github.com/LeonardoFurtado/zappa-docker
The text was updated successfully, but these errors were encountered: