forked from linagora/hublin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (29 loc) · 847 Bytes
/
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
32
33
34
35
36
37
38
39
#
# Hubl.in Docker container
#
# Build
# docker build -t openpaas/hublin .
#
# Run server and expose 8080
# docker run -p 8080:8080 openpaas/hublin
#
# Run in interactive mode (start the container and launch the bash shell)
# docker run -i -t openpaas/hublin /bin/bash
#
FROM node:0.10.36
MAINTAINER Linagora Folks <[email protected]>
# Cache NPM install of package.json has not been changed
# cf http://www.clock.co.uk/blog/a-guide-on-how-to-cache-npm-install-with-docker
ADD package.json /src/package.json
# Cache bower
ADD bower.json /src/bower.json
ADD .bowerrc /src/.bowerrc
RUN cd /src && npm install bower
RUN cd /src && npm install --production --unsafe-perm
ADD . /src
ADD config/db.json.docker /src/config/db.json
ENV HUBLIN_REDIS_HOST redis
ENV HUBLIN_REDIS_PORT 6379
EXPOSE 8080
WORKDIR /src
CMD ["npm", "start"]