All checks were successful
Build container images / build (push) Successful in 1m47s
24 lines
694 B
Docker
24 lines
694 B
Docker
|
|
ARG NODE_VERSION
|
|
|
|
FROM node:${NODE_VERSION}-alpine
|
|
WORKDIR /doc-utils
|
|
|
|
RUN apk add --no-cache \
|
|
python3 \
|
|
g++ \
|
|
make \
|
|
bash \
|
|
git
|
|
|
|
COPY package.json package-lock.json /doc-utils/
|
|
|
|
RUN --mount=type=secret,id=npmrc,target=/root/.npmrc npm ci
|
|
|
|
RUN ln -s /doc-utils/node_modules/@doc-utils/docs2website/bin/docs2website /bin/docs2website
|
|
RUN ln -s /doc-utils/node_modules/@doc-utils/jsonschema2markdown/bin/jsonschema2markdown /bin/jsonschema2markdown
|
|
RUN ln -s /doc-utils/node_modules/@doc-utils/markdown2html/bin/markdown2html /bin/markdown2html
|
|
RUN ln -s /doc-utils/node_modules/@doc-utils/markdown2html/bin/strip-frontmatter /bin/strip-frontmatter
|
|
|
|
ENTRYPOINT [ "/bin/bash", "-l", "-c" ]
|