Detected django app but I'm using cherrypy

I’m new to fly.io, and Dockerfiles as well. My python app uses cherrypy, but fly.io is detecting my app as a django app, so deploying fails because my Dockerfile is wrong.

What’s the appropriate Dockerfile for a cherrypy app? (Is this something that needs to be specific to how fly.io deploys apps, or is it generic?)

(Similar to this issue, but I need a Dockerfile that will work for cherrypy instead of flask.)

For anyone coming across this same issue, the fix was very simple. Starting from the Django Dockerfile, comment out the line RUN python manage.py collectstatic --noinput and the line CMD ["gunicorn", "--bind", ":8080", "--workers", "2", "demo.wsgi"]. Then add a new line that says CMD ["python", "app.py"] assuming your app is named “app.py”.