Skip to content

Commit

Permalink
Merge pull request #21 from jhudsl/cansavvy/retire-phantomjs
Browse files Browse the repository at this point in the history
Retire phantomJS for chromote
  • Loading branch information
cansavvy authored Jun 26, 2024
2 parents e94372f + 196bb0f commit b3183d9
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions ottrpal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,5 @@ RUN apt-get install -y --no-install-recommends \
RUN apt-get update && apt-get install -y r-base curl

# Install R packages
RUN Rscript -e "install.packages('curl')"
RUN Rscript -e "install.packages(c('curl', 'chromote', 'webshot2'))"

# Install phantomjs
RUN apt-get update && apt-get install build-essential chrpath libssl-dev libxft-dev -y \
&& apt-get install libfontconfig1 libfontconfig1-dev -y \
&& cd ~ && export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" \
&& wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2 \
&& sudo tar xvjf $PHANTOM_JS.tar.bz2 \
&& sudo mv $PHANTOM_JS /usr/local/share \
&& sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin \
&& phantomjs --version

0 comments on commit b3183d9

Please sign in to comment.