Docker Phantoms

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

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
1

Dockerfile - :

# PhantomJS
ENV PHANTOMJS_VERSION 1.9.7
RUN wget --no-check-certificate -q -O - https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 | tar xjC /opt
RUN ln -s /opt/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
+11

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


All Articles