-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
34 lines (27 loc) · 945 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
FROM node:latest
#Installing Loopback
RUN apt-get update
RUN apt-get install -y ruby ruby-dev git
RUN gem install sass compass
RUN npm install -g grunt-cli forever yo bower
# Clone the latest cyNetShare code
RUN mkdir /data
RUN mkdir /data/app
WORKDIR /data/app
RUN git clone https://github.com/idekerlab/cy-net-share.git
WORKDIR /data/app/cy-net-share
ADD api_key.txt /data/app/cy-net-share/node-app/
RUN git submodule init
# This is a bit hackey, but need to edit remote repo location to http.
RUN sed -i -e 's/[email protected]:cytoscape\/cyjs-sample.git/https:\/\/github.com\/cytoscape\/cyjs-sample.git/' .gitmodules
RUN git submodule sync
RUN git submodule update
WORKDIR /data/app/cy-net-share/cyjs-sample
RUN npm install
RUN bower install --allow-root --config.interactive=false --force
RUN grunt --force
RUN cp -r dist ../node-app/public
EXPOSE 3000
WORKDIR /data/app/cy-net-share/node-app
RUN npm install
CMD ["forever","./bin/www"]