$ wget -nv -O - https://packagecloud.io/dokku/dokku/gpgkey | apt-key add -
$ export OS_ID="$(lsb_release -cs 2>/dev/null || echo "bionic")"
$ echo "bionic focal jammy" | grep -q "$OS_ID" || OS_ID="bionic"
$ echo "deb $SOURCE $OS_ID main" | tee /etc/apt/sources.list.d/dokku.list
Powered by Docker, you can install Dokku on any hardware. Use it on inexpensive cloud providers. Use the extra cash to buy a pony or feed kittens. You'll save tens of dollars a year on your dog photo sharing website.
Once it's set up on a host, you can push Heroku-compatible applications to it via Git. They'll build using Heroku buildpacks and then run in isolated containers. The end result is your own, single-host version of Heroku.