Create a gist now

Instantly share code, notes, and snippets.

@akagisho /Dockerfile
Last active Feb 19, 2017

What would you like to do?
FROM ubuntu:xenial
MAINTAINER akagisho <>
RUN sed -i -e "s|||" /etc/apt/sources.list
RUN apt update \
&& apt install -y curl git libfontconfig-dev fonts-takao* supervisor sudo \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sL | bash - \
&& apt install -y nodejs
RUN cd /usr/local/src \
&& curl -OL \
&& tar -xf phantomjs-2.1.1-linux-x86_64.tar.bz2 \
&& cp phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/
RUN useradd -m -d /home/node -s /bin/bash node \
&& sudo -u node -H git clone /home/node/snapshot \
&& cd /home/node/snapshot \
&& sudo -u node -H npm install
RUN cp /home/node/snapshot/etc.supervisor/conf.d/snapshot.conf /etc/supervisor/conf.d/
ENTRYPOINT /usr/bin/supervisord -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment