heroku: docker: deploy

terminal


cd some-app

#Log in to your heroku account
heroku login

#Create a new app in your account
#* If you already have an app on your heroku account, heroku git:remote -a some-app
heroku create some-app

#Deploy Docker image on heroku app
heroku container:login
heroku container:push web #The name is fixed on the web
heroku container:release web

--Apps running with docker-compose are not supported

--Note that heroku has a special port setting. Does not work on 3000 or 8080

Dockerfile


#Doesn't work at 3000
CMD npx next start -p 3000

# $Need to change to PORT
#heroku$Set an environment variable called PORT to a random value from the list of available ports
CMD npx next start -p $PORT

Recommended Posts

heroku: docker: deploy
heroku deploy
Deploy Flask's Docker image on Heroku
Deploy Rails on Docker to heroku
Deploy to heroku with Docker (Rails 6, MySQL)
Steps to deploy to Heroku
Rails deploy with Docker
Deploy Line bot with rails5 + Docker + Heroku Note
Deploy Vapor Project to Heroku
Deploy with EC2 / Docker / Laravel
How to deploy to Heroku from a local docker image
How to deploy on heroku
docker
Deploy a Docker application with Greengrass
Run puppeteer-core on Heroku (Docker edition)
Deploy a war file on Heroku
Deploy your Rails app on Heroku
I was able to deploy the Docker + laravel + MySQL app to Heroku!
docker memo
kubernetes + docker
spring × docker
About Docker
Deploy heroku with Rails6 (Cloud9 + Ubuntu) + MySQL
Docker Intellij
Docker basics
Docker installation
About Docker
Docker command
Docker memorandum
Deploy a Java web app on Heroku
Deploy your application with VPC + EC2 + Docker.
Understand Docker
Docker memorandum
Deploy a Tomcat-based Eclipse project on Heroku
Deploy to Heroku (for second and subsequent edits)