Building Docker images with heroku.yml is now generally available

Change effective on 13 November 2018

Today, building Docker images with heroku.yml is generally available; you can now:

  • Use git push heroku master to build your Docker images on Heroku
  • Take advantage of review apps in Docker-based projects

To get started, reference your Dockerfiles in a heroku.yml file, set your app’s stack to container, and push your code to deploy:

$ cat heroku.yml
# An example heroku.yml
build:
  docker:
    web: Dockerfile
run:
  web: bundle exec puma -C config/puma.rb
$ git push heroku master
remote: Compressing source files... done.
remote: Building source:
remote: === Building web (Dockerfile)
remote: Sending build context to Docker daemon  11.26kB
remote: Step 1/2 : FROM alpine:latest
…
remote: Successfully built e3a5e126e300
remote: === Pushing web (Dockerfile)
…
remote: Verifying deploy... done.

For more detail, check out the building Docker images with heroku.yml Dev Center documentation.