link scripts into /bin
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
James Brumond 2023-05-13 22:01:32 -07:00
parent 064ea644c7
commit fd206ffd3e
Signed by: james
GPG Key ID: E8F2FC44BAA3357A

View File

@ -1,8 +1,9 @@
ARG NODE_VERSION ARG NODE_VERSION
ARG UTILS_DIR=/doc-utils
FROM node:${NODE_VERSION}-alpine FROM node:${NODE_VERSION}-alpine
WORKDIR /doc-utils WORKDIR ${UTILS_DIR}
RUN apk add --no-cache \ RUN apk add --no-cache \
python3 \ python3 \
@ -10,11 +11,12 @@ RUN apk add --no-cache \
make \ make \
bash bash
COPY package.json package-lock.json .npmrc /doc-utils/ COPY package.json package-lock.json .npmrc ${UTILS_DIR}/
RUN npm ci RUN npm ci
RUN rm /doc-utils/.npmrc 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
ENV PATH="$PATH:/doc-utils/node_modules/.bin" 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" ] ENTRYPOINT [ "/bin/bash", "-l", "-c" ]