Skip to content

Instantly share code, notes, and snippets.

@Lockyy
Last active June 6, 2023 16:24
Show Gist options
  • Save Lockyy/1609879f0fe3ae682429 to your computer and use it in GitHub Desktop.
Save Lockyy/1609879f0fe3ae682429 to your computer and use it in GitHub Desktop.
Installing phantomjs on a docker ubuntu box
apt-get update
apt-get install -y build-essential chrpath libssl-dev libxft-dev
apt-get install -y libfreetype6 libfreetype6-dev
apt-get install -y libfontconfig1 libfontconfig1-dev
apt-get install -y wget
cd ~
export PHANTOM_JS="phantomjs-1.9.8-linux-x86_64"
wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2
mv $PHANTOM_JS.tar.bz2 /usr/local/share/
cd /usr/local/share/
tar xvjf $PHANTOM_JS.tar.bz2
ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/share/phantomjs
ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin/phantomjs
ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/bin/phantomjs
phantomjs --version
@ORESoftware
Copy link

RUN x ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment