Browse Source

merged files

bubble
Tony Tam 9 years ago
parent
commit
3d66a4ecf7
3 changed files with 16 additions and 1 deletions
  1. +4
    -0
      .dockerignore
  2. +3
    -1
      Dockerfile
  3. +9
    -0
      README.md

+ 4
- 0
.dockerignore View File

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

+ 3
- 1
Dockerfile View File

@@ -19,4 +19,6 @@ WORKDIR /build
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
=======
CMD PATH=$PATH:node_modules/.bin cake dist

+ 9
- 0
README.md 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.



Loading…
Cancel
Save