DEV Community

Discussion on: Deploy a Docker built Lambda function with AWS CDK

Collapse
 
davewilton profile image
David Wilton

Thanks for this I found it really helpful. One thing to note, in the Docker file the .py is copied on before the requirements and pip install. The result will be that every time the python file is changed and you debug docker will rebuild the image. Docker has some very clever caching, so copy the python file last!

Collapse
 
wesleycheek profile image
Wesley Cheek • Edited

Ah that's a good tip! Thanks - I've added your suggestion to the example Dockerfile.