forked from maccam912/MEANJS
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM phusion/baseimage | ||
MAINTAINER Matt Koski <maccam912@gmail.com> | ||
|
||
RUN apt-get upgrade && apt-get update -y | ||
RUN apt-get install git python build-essential wget screen tmux curl vim -y | ||
|
||
RUN mkdir /Development | ||
RUN cd /Development && git clone git://github.com/joyent/node | ||
|
||
RUN cd /Development/node && ./configure && make && make install | ||
RUN rm -rf /Development/node | ||
|
||
RUN npm install -g bower grunt-cli yo generator-meanjs | ||
|
||
RUN cd /Development && curl -O http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.3.tgz && tar -zxvf mongodb-linux-x86_64-2.6.3.tgz && mkdir -p mongodb && cp -R -n mongodb-linux-x86_64-2.6.3/ mongodb | ||
|
||
RUN export PATH=/Development/mongodb:$PATH | ||
|
||
RUN mkdir -p /data/db | ||
RUN mongod | ||
|
||
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 "Run 'yo meanjs myApp', cd into 'myApp', and run 'grunt' to start the service." |