An alternative to this is to statically compile and use scratch docker image.<p>Another tip is if writing a http app etc Axum/Actix have Lambda shims.<p>I add a cli flag “—lambda” which enables the shim. That means I can run the app locally, in Kubernetes, ECS, Lambda with minimum effort. It also makes dev easier pretending lambda doesn’t exist.