简体   繁体   中英

How to deploy a python docker image to AWS Lambda?

I am trying to figure out how to deploy a flask application that I have received with a Dockerfile to AWS Lambda.

In local, all I have to do to start the app is to enter docker-compose up . That's work great.

But I don't know how to deploy this environment to AWS Lambda and tell it to run docker-compose up to launch the app.

Any help will be highly appreciated. Thanks.

It is not possible to use a docker image with aws lambda. Lambda is supposed to execute function or code snippets in different possible programming languages.

You should use AWS ECS to run docker container from images.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM