From 235e0c00da6e605a8a70cfacd250841aa8efa329 Mon Sep 17 00:00:00 2001 From: Akshat Aranya Date: Thu, 5 Feb 2015 08:28:36 -0800 Subject: [PATCH] fixes to docker installation --- Dockerfile | 4 +--- README.md | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 05e9d50b..9283619d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,4 @@ 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 ./node_modules/gulp/bin/gulp.js serve diff --git a/README.md b/README.md index 7d446c8a..c45e6e38 100644 --- a/README.md +++ b/README.md @@ -46,9 +46,10 @@ To build swagger-ui using a docker container: ``` docker build -t swagger-ui-builder . -docker run -v $PWD/dist:/build/dist swagger-ui-builder +docker run -p 127.0.0.1:8080:8080 swagger-ui-builder ``` +This will start Swagger UI at `http://localhost:8080`. ### Use Once you open the Swagger UI, it will load the [Swagger Petstore](http://petstore.swagger.wordnik.com/v2/swagger.json) service and show its APIs. You can enter your own server url and click explore to view the API.