Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarah German <sgerman@gitlab.com>2022-10-26 20:14:31 +0300
committerSarah German <sgerman@gitlab.com>2022-10-26 20:14:31 +0300
commit3a74580461c5495d90b59a787c23626fa26cb8bb (patch)
treed771f40ceb6e040e336abc8d0c28bfb150e876bf /dockerfiles
parent0088e2383226f1389df0601ff1efdd788af673d6 (diff)
Set NODE_PATH to allow markdownlint scripts to run global packages
Diffstat (limited to 'dockerfiles')
-rw-r--r--dockerfiles/gitlab-docs-lint-markdown.Dockerfile3
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 \