From b98005b5847f9a1c5e9eb660872e806f57f96575 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Wed, 28 Jan 2015 16:58:16 -0800 Subject: [PATCH] manual merge #654 --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 0a8b123f..b278696f 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,15 @@ You can rebuild swagger-ui on your own to tweak it or just so you can say you di 2. npm run-script build 3. You should see the distribution under the dist folder. Open ./dist/index.html to launch Swagger UI in a browser +### 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.