mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
Feature/dockerize redoc cli (#614)
* Docker container to run redoc-cli
* Dockerfile to package the 'redoc-cli' tool as a docker image
* Revert "Dockerfile to package the 'redoc-cli' tool as a docker image"
This reverts commit fec72ac0ea
.
* Dockerfile to package the 'redoc-cli' tool as a docker image
* Fixed with help from RomanGotsiy & xxxcoltxxx
This commit is contained in:
parent
4691d78dc0
commit
5e6f6fff03
23
cli/Dockerfile
Normal file
23
cli/Dockerfile
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# Package the 'redoc-cli' as a docker image.
|
||||||
|
#
|
||||||
|
# To build:
|
||||||
|
# $ cd <Redoc project directory>
|
||||||
|
# $ docker build -t redoc-cli -f cli/Dockerfile .
|
||||||
|
#
|
||||||
|
# To run:
|
||||||
|
# To display the command line options:
|
||||||
|
# $ docker run --rm -it redoc-cli --help
|
||||||
|
# .. will display the comand line help
|
||||||
|
#
|
||||||
|
# To turn `swagger.yml` file in the current directory, to html documentation 'redoc-static.html'
|
||||||
|
# $ docker run --rm -it -v $PWD:/data redoc-cli bundle swagger.yml
|
||||||
|
|
||||||
|
FROM node:alpine
|
||||||
|
|
||||||
|
RUN npm install -g redoc-cli
|
||||||
|
|
||||||
|
WORKDIR /data
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
ENTRYPOINT ["redoc-cli"]
|
||||||
|
CMD []
|
Loading…
Reference in New Issue
Block a user