Following the newest trends, Heroku allows you to deploy a containerized application using Docker. In order to be able to do that, you should have Docker and the Heroku CLI installed on your local machine:
- First, log in to Heroku Cloud by running the command heroku login. The next step is to log in to the Container Registry:
$ heroku container:login
- Next, make sure that your current directory contains Dockerfile. If present, you can proceed to building and pushing the image to Heroku's Container Registry by executing the following command:
$ heroku container:push web
- If you have an existing built image, you may only be interested in tagging and pushing it to Heroku. In order to do that, you need to use Docker's ...