Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FROM node:5.12
ARG phantomjs_version=2.1.1
RUN mkdir /sdk
WORKDIR /sdk
RUN \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y git wget libfreetype6 libfontconfig default-jre && \
wget -q --no-check-certificate -O /tmp/phantomjs-$phantomjs_version-linux-x86_64.tar.bz2 https://s3-us-west-2.amazonaws.com/dep-mirror/phantomjs-$phantomjs_version-linux-x86_64.tar.bz2 && \
tar -xjf /tmp/phantomjs-$phantomjs_version-linux-x86_64.tar.bz2 -C /tmp && \
rm /tmp/phantomjs-$phantomjs_version-linux-x86_64.tar.bz2 && \
mv /tmp/phantomjs-$phantomjs_version-linux-x86_64/ /usr/share/phantomjs && \
ln -s /usr/share/phantomjs/bin/phantomjs /usr/bin/phantomjs && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY package.json /sdk/package.json
RUN npm install
COPY src /sdk/src
COPY test /sdk/test
CMD bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.