Created
June 3, 2018 14:28
-
-
Save akagisho/ef6dec36e750a05ab70d150d1e147b3a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:xenial | |
MAINTAINER akagisho <[email protected]> | |
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