forked from maccam912/MEANJS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (20 loc) · 1.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM ubuntu:latest
MAINTAINER Matt Koski <[email protected]>
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list
RUN apt-get update
#RUN apt-get install -y mongodb-org
RUN apt-get install -y mongodb-org git python build-essential curl
RUN start mongod
RUN mkdir -p /data/db
RUN mkdir /Development
RUN cd /Development && git clone git://github.com/nodejs/node
RUN cd /Development/node && ./configure && make && make install
RUN rm -rf /Development/node
RUN chmod 777 -R /Development
RUN npm install -g yo bower grunt-cli generator-meanjs express
# RUN curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh
EXPOSE 80:80
EXPOSE 443:443
EXPOSE 3000:3000
RUN echo "\n##############################\n1. Create a new user with adduser, 'su' into that user.\n2. 'yo meanjs' to scaffold your app in the current directory.\n3. Start mongo in the background (e.g. 'mongod &')\n##############################\n"