From c9bf775466dd1c3f3bca60ed76d0209cb1e879a6 Mon Sep 17 00:00:00 2001 From: James Brumond Date: Sat, 13 May 2023 22:03:48 -0700 Subject: [PATCH] remove var --- Dockerfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0f1afea..7cbfe2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,8 @@ ARG NODE_VERSION -ARG UTILS_DIR=/doc-utils FROM node:${NODE_VERSION}-alpine -WORKDIR ${UTILS_DIR} +WORKDIR /doc-utils RUN apk add --no-cache \ python3 \ @@ -11,12 +10,12 @@ RUN apk add --no-cache \ make \ bash -COPY package.json package-lock.json .npmrc ${UTILS_DIR}/ +COPY package.json package-lock.json .npmrc /doc-utils/ 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 +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" ]