forked from RLOpenCatalyst/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 719 Bytes
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 719 Bytes
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
FROM node:4.6.0
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev libkrb5-dev make g++ ruby libstdc++6
RUN npm install -g kerberos
##Client
RUN npm install -g grunt-cli
RUN npm install -g npm
RUN npm install forever --global
RUN gem install sass
RUN curl -L https://www.opscode.com/chef/install.sh | bash
RUN mkdir -p /rlc/client
RUN mkdir -p /rlc/server
## Client
ADD ./client/cat3 /rlc/client/cat3
ADD ./client/htmls /rlc/client/htmls
WORKDIR /rlc/client/cat3
RUN npm install --production
RUN npm run-script build-prod
## Server
WORKDIR /rlc/server
ADD ./server /rlc/server
RUN node install.js
EXPOSE 3001
## Server App
# CMD forever start app.js
WORKDIR /rlc/server/app
CMD node app.js