utils/Dockerfile
James Brumond 016b7b4a07
All checks were successful
Build container images / build (push) Successful in 1m47s
add git to image so it can be used to checkout
2023-08-18 18:04:47 -07:00

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" ]