Skip to content

Instantly share code, notes, and snippets.

@akagisho
Created June 3, 2018 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akagisho/ef6dec36e750a05ab70d150d1e147b3a to your computer and use it in GitHub Desktop.
Save akagisho/ef6dec36e750a05ab70d150d1e147b3a to your computer and use it in GitHub Desktop.
FROM ubuntu:xenial
MAINTAINER akagisho <akagisho@gmail.com>
RUN sed -i -e "s|http://archive.ubuntu.com/|http://jp.archive.ubuntu.com/|" /etc/apt/sources.list
RUN apt update \
&& apt install -y sudo curl git libfontconfig-dev fonts-takao* chromium-browser supervisor
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
&& apt install -y nodejs \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -d /home/node -s /bin/bash node \
&& sudo -u node -H git clone https://github.com/akagisho/snapshot /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/
EXPOSE 3000
ENTRYPOINT /usr/bin/supervisord -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment