forked from cloudfoundry-attic/cf-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (24 loc) · 825 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
###
# swagger-editor - https://github.com/swagger-api/swagger-editor/
#
# Run the swagger-editor service on port 8080
###
FROM registry-ice.ng.bluemix.net/ibmnode:latest
COPY id_med_rsa.pub /root/.ssh/
RUN cat /root/.ssh/id_med_rsa.pub >> /root/.ssh/authorized_keys
MAINTAINER Marcello_deSales@intuit.com
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y git npm nodejs
#RUN ln -s /usr/bin/nodejs /usr/local/bin/node
WORKDIR /runtime
ADD package.json /runtime/package.json
#RUN npm install
RUN npm install -g bower grunt-cli
ADD bower.json /runtime/bower.json
ADD .bowerrc /runtime/.bowerrc
RUN bower --allow-root install
ADD . /runtime
RUN grunt build
# The default port of the application
EXPOSE 8080
CMD grunt connect:dist