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
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:
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: