Created
December 16, 2017 17:58
-
-
Save odedia/ce6d76d1766235c24331ac4a60646ef0 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 | |
| MAINTAINER Kimbro Staken | |
| RUN apt-get install -y python-software-properties python python-setuptools ruby rubygems | |
| RUN add-apt-repository ppa:chris-lea/node.js | |
| RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list | |
| RUN apt-get update | |
| RUN apt-get install -y nodejs | |
| RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
| RUN echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | tee -a /etc/apt/sources.list.d/10gen.list | |
| RUN apt-get -y update | |
| RUN apt-get -y install mongodb-10gen | |
| RUN easy_install supervisor | |
| RUN echo_supervisord_conf > /etc/supervisord.conf | |
| RUN printf "[include]\nfiles = /var/www/Supervisorfile\n" >> /etc/supervisord.conf | |
| ADD . /var/www | |
| RUN cd /var/www ; npm install | |
| CMD ["/usr/local/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment