mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 14:14:56 +03:00
Revert "Dockerfile to package the 'redoc-cli' tool as a docker image"
This reverts commit fec72ac0ea
.
This commit is contained in:
parent
f2b09f5a5e
commit
fe0c5d00a3
|
@ -1,30 +1,25 @@
|
||||||
# Package the 'redoc-cli' as a docker image.
|
|
||||||
#
|
|
||||||
# To build:
|
# To build:
|
||||||
# $ cd <Redoc project directory>
|
# - Must be in the project root directory
|
||||||
# $ docker build -t redoc-cli -f cli/Dockerfile .
|
# - docker build -f cli/Dockerfile .
|
||||||
#
|
#
|
||||||
# To run:
|
# To run
|
||||||
# To display the command line options:
|
# - docker run --rm -i -t <image> --help
|
||||||
# $ docker run --rm -it redoc-cli redoc-cli --help
|
|
||||||
# .. will display the comand line help
|
|
||||||
#
|
|
||||||
# To the `swagger.yml` file in the current directory, and output 'redoc-static.html'
|
|
||||||
# $ docker run --rm -it -v $PWD:/data redoc-cli redoc-cli bundle swagger.yml
|
|
||||||
|
|
||||||
FROM node:alpine
|
FROM node:alpine
|
||||||
|
|
||||||
# Needs python, alpine-sdk to build node packages
|
|
||||||
RUN apk update && apk add --no-cache git python alpine-sdk nodejs
|
RUN apk update && apk add --no-cache git python alpine-sdk nodejs
|
||||||
|
|
||||||
|
# generate bundle
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY . /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 yarn install --frozen-lockfile --ignore-optional --ignore-scripts && \
|
RUN npm install typescript
|
||||||
npm run bundle && npm run compile:cli && \
|
RUN npm install iltorb
|
||||||
npm install typescript && \
|
RUN npm install -g redoc-cli
|
||||||
npm install iltorb && \
|
|
||||||
npm install -g redoc-cli
|
|
||||||
|
|
||||||
WORKDIR /data
|
ENTRYPOINT ["redoc-cli"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user