chore: move Dockerfile to config/docker

This commit is contained in:
Roman Hotsiy 2018-11-06 15:29:42 +02:00
parent ea5029b52d
commit 07b5e62897
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
3 changed files with 8 additions and 7 deletions

View File

@ -1,8 +1,4 @@
# Redoc docker image
## Build
docker build -t redoc .
# Official ReDoc Docker Image
## Usage
@ -24,3 +20,7 @@ Serve local file:
- `SPEC_URL` (default `"http://petstore.swagger.io/v2/swagger.json"`) - URL to spec
- `PORT` (default `80`) - nginx port
- `REDOC_OPTIONS` - [`<redoc>` tag attributes](https://github.com/Rebilly/ReDoc#redoc-tag-attributes)
## Build
docker build -t redoc .

View File

@ -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",