From 07b5e62897bd25683c21de7aab768990f8619837 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 6 Nov 2018 15:29:42 +0200 Subject: [PATCH] chore: move Dockerfile to config/docker --- Dockerfile => config/docker/Dockerfile | 0 config/docker/README.md | 12 ++++++------ package.json | 3 ++- 3 files changed, 8 insertions(+), 7 deletions(-) rename Dockerfile => config/docker/Dockerfile (100%) diff --git a/Dockerfile b/config/docker/Dockerfile similarity index 100% rename from Dockerfile rename to config/docker/Dockerfile diff --git a/config/docker/README.md b/config/docker/README.md index c0c23eda..b94358cd 100644 --- a/config/docker/README.md +++ b/config/docker/README.md @@ -1,8 +1,4 @@ -# Redoc docker image - -## Build - - docker build -t redoc . +# Official ReDoc Docker Image ## Usage @@ -23,4 +19,8 @@ Serve local file: - `PAGE_FAVICON` (default `"favicon.png"`) - URL to page favicon - `SPEC_URL` (default `"http://petstore.swagger.io/v2/swagger.json"`) - URL to spec - `PORT` (default `80`) - nginx port -- `REDOC_OPTIONS` - [`` tag attributes](https://github.com/Rebilly/ReDoc#redoc-tag-attributes) \ No newline at end of file +- `REDOC_OPTIONS` - [`` tag attributes](https://github.com/Rebilly/ReDoc#redoc-tag-attributes) + +## Build + + docker build -t redoc . diff --git a/package.json b/package.json index 888fa7f2..8d3cdb0a 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,8 @@ "compile:cli": "tsc custom.d.ts cli/index.ts --target es6 --module commonjs --types yargs", "build:demo": "webpack --mode=production --config demo/webpack.config.ts", "deploy:demo": "npm run build:demo && deploy-to-gh-pages --update demo/dist", - "license-check": "license-checker --production --onlyAllow 'MIT;ISC;Apache-2.0;BSD;BSD-2-Clause;BSD-3-Clause' --summary" + "license-check": "license-checker --production --onlyAllow 'MIT;ISC;Apache-2.0;BSD;BSD-2-Clause;BSD-3-Clause' --summary", + "docker:build": "docker build -f config/docker/Dockerfile -t redoc ." }, "devDependencies": { "@babel/core": "7.1.2",