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

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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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: