forked from ExchangeBC/BCDevExchange-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (18 loc) · 917 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Building a docker image from this Dockerfile with just the source code in context
# is not good enough to create a fully functioning site.
# /config/local.json must be supplied prior to docker build. In addition,
# mongodb data should be imported from an existing web site to reproduce end result.
FROM node:0.12.10
RUN mkdir -p /usr/src/app /data/db
WORKDIR /usr/src/app
# Install MongoDB
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
RUN echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list
RUN apt-get update && apt-get install -y adduser mongodb-org-server mongodb-org-shell
VOLUME /data/db
# Build app
RUN npm upgrade -g npm && npm install -g [email protected] [email protected]
COPY . /usr/src/app
RUN npm install BCDevExchange/swagger-editor && npm install && bower install ; grunt build
EXPOSE 8000
CMD mongod & npm start