Deployment always fails and container logs are not printed

The problem is addressed in this post https://community.fly.io/t/kernel-panic-when-deploying-app/4884.