/ml-fastapi-docker-heroku

Deploy ML models with FastAPI, Docker, and Heroku

Primary LanguagePython

Deploy ML models with FastAPI, Docker, and Heroku

1. Develop and save the model with this Colab

Open Colab

2. Create Docker container

docker build -t app-name .

docker run -p 80:80 app-name

3. Create Git repo

If you clone this repo this step is not needed. Or you can delete this git repo with rm -rf .git and start with a new one:

git init
git add .
git commit -m "initial commit"
git branch -M main

4. Create Heroku project

heroku login
heroku create your-app-name
heroku git:remote your-app-name
heroku stack:set container
git push heroku main