-
Make sure you have the Heroku CLI and GIT
-
See this repo or the spoiler below:
git clone git@github.com:askblaker/fastapi-docker-heroku.git
cd fastapi-docker-heroku
heroku create <your-app-name>
heroku git:remote <your-app-name>
heroku stack:set container
git push heroku main
- Enjoy your api at https://your-app-name.herokuapp.com