@ -6,6 +6,7 @@ ENV FOLDER "swagger-ui-2.2.0"
ENV API_URL "http://petstore.swagger.io/v2/swagger.json"
ENV API_KEY "**None**"
ENV SWAGGER_JSON "/app/swagger.json"
ENV PORT 80
WORKDIR /app
@ -12,3 +12,4 @@ $ docker run -d -p 80:80 -e API_URL=http://localhost:4000/swagger schickling/swa
* `API_URL` - Swagger endpoint for your API
* `API_KEY` - Default API Key (optional)
* `PORT` - Default port to run on (optional)
@ -16,4 +16,4 @@ else
sed -i "s|http://example.com/api|$API_URL|g" index.html
fi
exec http-server -p 80
exec http-server -p $PORT $*