Skip to main content

Command Palette

Search for a command to run...

deploy docker image to heroku

Updated
2 min read
A

Self taught developer working on Angular, Vue, Typescript, Node JS, MongoDB, Express JS, LoopBack API, Laravel, Laravel Lumen, mysql. write packages for angular/vue. Part time youtuber

Before start please refer to my previous blog create angular docker image

Our next step is to deploy docker image to heroku

First step is to create account in heroku, install heroku cli in the system and login to your account using heroku cli:

heroku login

Next step to create heroku app

heroku create yourappname

Now execute below command to tag your docker image to heroku registry

docker tag angular-docker-app registry.heroku.com/yourappname/web

below command creates a docker image from the Dockerfile in the heroku container registry.

docker push registry.heroku.com/yourappname/web

Now execute below command to push all docker image to heroku

heroku container:push web --app yourappname

Now release your app to execute below command:

heroku container:release  web --app yourappname

now open your app in the browser your app url

More from this blog

Angular, TypeScript, Vue, Node JS, Express JS, MongoDB, MongoDB Cloud, PHP, Laravel, Slim Framework, Mysql, JavaScript, PWA

24 posts

I'm a Full Stack Developer, Open Source Contributor, Blogger, npm packages developer, Youtuber. My hobbies are Contribution in open source projects, blogging, develop npm packages, part time youtuber