how to chroot a python app?

I created a simple app in python flask, I would like to put it in a chroot. a very thin jail only containing the bare minimum for this app to run. This is for a school project so I need to use chroot. I’d like to know:

  1. how to know which libraries I should put in my chroot (since ldd won’t work on the script)
  2. how to implement this chroot (the big lines).

Thank you in advance if you can help me.