Last active
August 29, 2015 14:02
-
-
Save RocAlayo/72c3184226d26a9f140b to your computer and use it in GitHub Desktop.
Dockerfile for debian with NodeJS, MongoDB and git support installed
This file contains 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
# DOCKER-VERSION 1.0.0 | |
FROM debian:latest | |
#repos mongo and node | |
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
RUN echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list | |
RUN echo "deb http://ftp.us.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list | |
RUN apt-get update | |
#install nodejs and mongodb | |
RUN clean=no apt-get install nodejs-legacy curl mongodb-org git -y | |
RUN curl --insecure https://www.npmjs.org/install.sh | clean=no bash | |
#install npm dependencies | |
RUN npm install -g yo generator-angular-fullstack mongoose n vtop | |
RUN n stable | |
#create folder for the code | |
#ADD . webapp/ | |
#create app | |
#RUN cd /webapp && git init | |
#RUN cd /webapp && yo angular-fullstack | |
#RUN cd /webapp && grunt serve | |
VOLUME /webapp | |
EXPOSE 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment