Skip to content

Commit

Permalink
Feature/dockerize redoc cli (#614)
Browse files Browse the repository at this point in the history
* 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 fec72ac.

* Dockerfile to package the 'redoc-cli' tool as a docker image

* Fixed with help from RomanGotsiy  & xxxcoltxxx
  • Loading branch information
davidoram authored and RomanHotsiy committed Nov 27, 2018
1 parent 4691d78 commit 5e6f6ff
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 []

0 comments on commit 5e6f6ff

Please sign in to comment.