merged files

This commit is contained in:
Tony Tam
2015-01-28 17:16:50 -08:00
3 changed files with 16 additions and 1 deletions

4
.dockerignore Normal file
View File

@@ -0,0 +1,4 @@
.git
node_modules
bower_components
*.swp

View File

@@ -20,3 +20,5 @@ ADD package.json /build/package.json
RUN npm install
ADD . /build
CMD PATH=$PATH:node_modules/.bin cake dist
=======
CMD PATH=$PATH:node_modules/.bin cake dist

View File

@@ -46,6 +46,15 @@ docker build -t swagger-ui-builder .
docker run -v $PWD/dist:/build/dist swagger-ui-builder
```
### Build using Docker
To build swagger-ui using a docker container:
```
docker build -t swagger-ui-builder .
docker run -v $PWD/dist:/build/dist swagger-ui-builder
```
### Use
Once you open the Swagger UI, it will load the [Swagger Petstore](http://petstore.swagger.wordnik.com/api/api-docs) service and show its APIs. You can enter your own server url and click explore to view the API.