Install PhantomJS on a Dokku docker / container

I am having problems adding PhantomJS to our docker containers on our website.

I have 2 containers for testing and production, but I have no idea how to add them to each of these containers.

The containers are made with Dokku and are already running. This is a bit different, so we cannot pull fresh containers with images or edit their Dockerfiles

In addition, we were able to use type commands wgetusing dokku run, but this is not an interactive shell. In addition, files downloaded using wget do not appear in the container when checking with ls, even if the download is completed.

+4
source share
2 answers

Edit: this is much simpler than I thought.

What you need to do is use this dokku plugin:

https://github.com/F4-Group/dokku-apt

Once the plugin is installed, just create the apt-packages file in the root of your project. Read more in README

+3
source

By taking the signals from the THIS response from SO, you can put the same lines in your Docker file when creating containers. That should do it. NTN

+1
source

Source: https://habr.com/ru/post/1542410/


All Articles