diff options
author | Sarah German <sgerman@gitlab.com> | 2022-10-26 20:14:31 +0300 |
---|---|---|
committer | Sarah German <sgerman@gitlab.com> | 2022-10-26 20:14:31 +0300 |
commit | 3a74580461c5495d90b59a787c23626fa26cb8bb (patch) | |
tree | d771f40ceb6e040e336abc8d0c28bfb150e876bf /dockerfiles | |
parent | 0088e2383226f1389df0601ff1efdd788af673d6 (diff) |
Set NODE_PATH to allow markdownlint scripts to run global packages
Diffstat (limited to 'dockerfiles')
-rw-r--r-- | dockerfiles/gitlab-docs-lint-markdown.Dockerfile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dockerfiles/gitlab-docs-lint-markdown.Dockerfile b/dockerfiles/gitlab-docs-lint-markdown.Dockerfile index 226e023f..110e4cc3 100644 --- a/dockerfiles/gitlab-docs-lint-markdown.Dockerfile +++ b/dockerfiles/gitlab-docs-lint-markdown.Dockerfile @@ -9,6 +9,9 @@ FROM alpine:${ALPINE_VERSION} ARG VALE_VERSION ARG MARKDOWNLINT_VERSION +# Set NODE_PATH to allow custom markdownlint rules to use global packages +ENV NODE_PATH="/usr/local/share/.config/yarn/global/node_modules" + # Install dependencies RUN printf "\n\e[32mINFO: Installing dependencies..\e[39m\n" && apk add --no-cache -U \ bash \ |