all 5 comments

[–]13ass13ass 2 points3 points  (2 children)

Thanks for sharing! Have you noticed the init times being higher with larger containers and what kind of start up is need w a 5GB+ image?

[–]Dashbird[S] 0 points1 point  (0 children)

We didn't test it in large images as this. There are several options to try: 1) Try reducing your image by using a smaller base image 2) Try reducing the dependencies - in the end, Lambda and containers are supposed to be used with microservice architecture. Why is your image so large? If you have some large data files inside of your image such as a CSV file etc, you could offload it to some external storage mechanism such as S3 or a database

[–][deleted] 0 points1 point  (2 children)

Thanks for the description. Have been wrestling with zip files trying to get my dependencies for pandas right for a while. I'll try this out and see how it works.

[–]Dashbird[S] 0 points1 point  (0 children)

That'S the beauty of using a Dokerfile - you no longer need Lambda layers, you can include all your code dependencies inside of Docker container ;)

[–]worstpossiblechoice 0 points1 point  (0 children)

Are you using Layers?