-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
47 lines (35 loc) · 1.09 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM node:4.2.3
# Install gem sass for grunt-contrib-sass
RUN apt-get update -qq && apt-get install -y build-essential
RUN apt-get install -y ruby
RUN gem install sass
WORKDIR /home/seanjs
# Install SEAN.JS Prerequisites
RUN npm install -g grunt-cli && npm install -g bower
# Install SEAN.JS packages
ADD package.json /home/seanjs/package.json
#RUN npm install
#RUN npm config set registry http://registry.npmjs.org/ && npm install --no-optional --verbose
# Manually trigger bower
ADD .bowerrc /home/seanjs/.bowerrc
ADD bower.json /home/seanjs/bower.json
RUN bower install --config.interactive=false --allow-root
# Make everything available for start
ADD . /home/seanjs
# Set development environment as default
ENV NODE_ENV development
ENV NODE_HOST 192.168.99.100
# Environment for redis
ENV REDIS_HOST 192.168.99.100
# Environment for postgres database
ENV DB_HOST 192.168.99.100
ENV DB_PORT 5432
ENV DB_NAME seanjs_dev
ENV DB_USERNAME postgres
ENV DB_PASSWORD postgres
ENV DB_DIALECT postgres
# Port 5432 for postgres
# Port 3000 for server
# Port 35729 for livereload
EXPOSE 5432 3000 35729
CMD ["grunt"]