Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes from docker host required to build/run with docker.
- Loading branch information
Showing
3 changed files
with
10 additions
and
15 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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
FROM node:4-onbuild | ||
FROM node:latest | ||
# MONGOINSTALL | ||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 | ||
RUN echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 main" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list | ||
# Update apt-get sources AND install MongoDB | ||
RUN apt-get update && apt-get install -y mongodb-org-server && apt-get install -y mongodb-org-mongos && apt-get install -y mongodb-org-shell | ||
# Create the MongoDB data directory | ||
RUN mkdir -p /data/db | ||
RUN chmod +x dockerstart.sh | ||
CMD ./dockerstart.sh | ||
COPY . /var/gryphon/ | ||
RUN npm install -g node-gyp grunt-cli | ||
RUN cd /var/gryphon && npm install | ||
RUN cd /var/gryphon && grunt config | ||
RUN cd /var/gryphon && grunt | ||
CMD service mongod start && node /var/gryphon/bin/www | ||
|
||
EXPOSE 3000 | ||
EXPOSE 27017 | ||
EXPOSE 27017 |
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
This file was deleted.
Oops, something went wrong.