Copy swagger.json to nginx directory

This commit is contained in:
Franz Wong
2017-06-03 13:01:11 +09:00
parent f862caa599
commit 20e7c0708a
2 changed files with 9 additions and 1 deletions

View File

@@ -35,6 +35,12 @@ docker run -p 80:8080 swaggerapi/swagger-ui
Will start nginx with swagger-ui on port 80.
Or you can provide your own swagger.json on your host
```
docker run -p 80:8080 -e "SWAGGER_JSON=/foo/swagger.json" -v /bar:/foo swaggerapi/swagger-ui
```
##### Prerequisites
- Node 6.x
- NPM 3.x