utils/Dockerfile
James Brumond fd206ffd3e
Some checks failed
continuous-integration/drone/push Build is failing
link scripts into /bin
2023-05-13 22:01:32 -07:00

23 lines
681 B
Docker

ARG NODE_VERSION
ARG UTILS_DIR=/doc-utils
FROM node:${NODE_VERSION}-alpine
WORKDIR ${UTILS_DIR}
RUN apk add --no-cache \
python3 \
g++ \
make \
bash
COPY package.json package-lock.json .npmrc ${UTILS_DIR}/
RUN npm ci
RUN ln -s ${UTILS_DIR}/node_modules/@doc-utils/docs2website/bin/docs2website /bin/docs2website
RUN ln -s ${UTILS_DIR}/node_modules/@doc-utils/jsonschema2markdown/bin/jsonschema2markdown /bin/jsonschema2markdown
RUN ln -s ${UTILS_DIR}/node_modules/@doc-utils/markdown2html/bin/markdown2html /bin/markdown2html
RUN ln -s ${UTILS_DIR}/node_modules/@doc-utils/markdown2html/bin/strip-frontmatter /bin/strip-frontmatter
ENTRYPOINT [ "/bin/bash", "-l", "-c" ]