add instructions for Dockerfile

This commit is contained in:
Zach Pomerantz 2018-03-15 11:52:34 +13:00
parent 3cab3a27e4
commit 174ea86bce

View File

@ -1,3 +1,10 @@
# To run:
# docker build -t redoc .
# docker run -it --rm -p 8080:8080 -e API_URL='http://localhost:8000/swagger.yaml' redoc
# Ensure http://localhost:8000/swagger.yaml is served with cors. A good solutino is:
# npm i -g http-server
# http-server -p 8000 --cors
FROM node:carbon
ENV API_TITLE "ReDoc"