mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-06 21:30:21 +03:00
add instructions for Dockerfile
This commit is contained in:
parent
3cab3a27e4
commit
174ea86bce
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user