How can I add custom Python modules to the Docker image?

You should be able to throw those into your plugins directory, which is a file automatically generated via the CLI when you initialize an Astronomer project.

It’ll work more or less like the examples in here: https://www.astronomer.io/guides/airflow-importing-custom-hooks-operators/