forked from OWASP/Maturity-Models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 678 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
FROM node
RUN git clone https://github.com/OWASP/Maturity-Models.git
WORKDIR Maturity-Models
RUN sed -i 's/git@github.com:/https:\/\/<user>:<token>@github.com\//' .gitmodules
RUN git submodule init
RUN git submodule update
RUN git pull origin master
WORKDIR code/api
RUN npm install --quiet
WORKDIR ../..
WORKDIR code/ui
RUN npm install --quiet
RUN npm install --quiet -g bower
RUN npm install --quiet -g gulp
RUN bower --allow-root install
RUN gulp
WORKDIR ../..
CMD npm start
# travis builds image and deploys to docker hub at: diniscruz/maturity-models
# build manually using: docker build -t diniscruz/maturity-models .