Skip to content

Instantly share code, notes, and snippets.

@rolltidehero
Created March 16, 2022 16:26
Show Gist options
  • Save rolltidehero/a062b3dd2d3a9ba5eec6b4e55e12414c to your computer and use it in GitHub Desktop.
Save rolltidehero/a062b3dd2d3a9ba5eec6b4e55e12414c to your computer and use it in GitHub Desktop.
# install docker
$ wget -nv -O - https://get.docker.com/ | sh
 # setup dokku apt repository
$ wget -nv -O - https://packagecloud.io/dokku/dokku/gpgkey | apt-key add -
$ export SOURCE="https://packagecloud.io/dokku/dokku/ubuntu/"
$ export OS_ID="$(lsb_release -cs 2>/dev/null || echo "bionic")"
$ echo "bionic focal" | grep -q "$OS_ID" || OS_ID="bionic"
$ echo "deb $SOURCE $OS_ID main" | tee /etc/apt/sources.list.d/dokku.list
$ apt-get update
 # install dokku
$ apt-get install dokku
$ dokku plugin:install-dependencies --core # run with root!
 # Configure your server domain via `dokku domains:set-global`
 # and user access (via `dokku ssh-keys:add`) to complete the installation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment