forked from swagger-api/swagger-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 744 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 744 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
###
# swagger-editor - https://github.com/swagger-api/swagger-editor/
#
# Run the swagger-editor service on port 8080
###
FROM ubuntu:14.04
MAINTAINER Marcello_deSales@intuit.com
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y git npm nodejs && rm -rf /var/lib/apt/lists/*
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 --force-latest install
ADD . /runtime
RUN grunt build
# The default port of the application
EXPOSE 8080
CMD grunt connect:dist