mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 21:40:32 +03:00
Docker container to run redoc-cli
This commit is contained in:
parent
e0d82f4aa8
commit
17386036c5
25
cli/Dockerfile
Normal file
25
cli/Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# To build:
|
||||||
|
# - Must be in the project root directory
|
||||||
|
# - docker build -f cli/Dockerfile .
|
||||||
|
#
|
||||||
|
# To run
|
||||||
|
# - docker run --rm -i -t <image> --help
|
||||||
|
|
||||||
|
|
||||||
|
FROM node:alpine
|
||||||
|
|
||||||
|
RUN apk update && apk add --no-cache git python alpine-sdk nodejs
|
||||||
|
|
||||||
|
# generate bundle
|
||||||
|
WORKDIR /build
|
||||||
|
COPY . /build
|
||||||
|
#RUN cd cli && npm run compile:cli
|
||||||
|
RUN yarn install --frozen-lockfile --ignore-optional --ignore-scripts
|
||||||
|
RUN npm run bundle && npm run compile:cli
|
||||||
|
|
||||||
|
RUN npm install typescript
|
||||||
|
RUN npm install iltorb
|
||||||
|
RUN npm install -g redoc-cli
|
||||||
|
|
||||||
|
ENTRYPOINT ["redoc-cli"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user