Skip to content

Instantly share code, notes, and snippets.

@RocAlayo
Last active August 29, 2015 14:02
Show Gist options
  • Save RocAlayo/72c3184226d26a9f140b to your computer and use it in GitHub Desktop.
Save RocAlayo/72c3184226d26a9f140b to your computer and use it in GitHub Desktop.
Dockerfile for debian with NodeJS, MongoDB and git support installed
# 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