how to deploy a rails project with require some extra lib on dokku server?

May 14, 2015 888 views
Dokku Ruby One-Click Install Apps

I wanna deploy my app to dokku one click server. There is a gem named 'charlock_holmes' which require me to install icu4c through brew or apt. How can I do this?
After some research, the solution is to use custom buildpack with apt. But all the answer is for heroku. No idea how to use it on dokku

1 Answer

Dokku uses the the same buildpack system as Heroku. To specify a custom buildpack, run:


Dokku also provides an option to use Dockerfiles instead of buildpacks. This might be a good option for you if you are looking to specify a custom environment for your application.

A third option is to use the dokku-apt plugin to install it in the container as part of the build process. You can install the plugin with:

  • sudo dokku plugin:install

Then create a file in your project's root directory named apt-packages with a newline separated list of the packages you want to install. For example:

Have another answer? Share your knowledge.