From df5e054acd679929fe3806e42944727986cee751 Mon Sep 17 00:00:00 2001 From: Carl Smedstad Date: Fri, 8 Oct 2021 16:13:09 +0200 Subject: [PATCH] Symlink executable into PATH This makes it easier to use the tool from within the Docker image, for example when the image is used as environment for a CI job. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 78ecfc3..327d046 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,5 +13,7 @@ RUN set -ex; \ npm install # Bundle app source COPY . /src +RUN ln -s /src/markdown-link-check /usr/local/bin/markdown-link-check +# hadolint ignore=DL3059 RUN npm test -ENTRYPOINT [ "/src/markdown-link-check" ] +ENTRYPOINT [ "markdown-link-check" ]