2024-12-20 17:15:57 +00:00
|
|
|
FROM docker.io/library/node:23.5.0-alpine3.20 AS build
|
2021-09-08 16:03:13 +00:00
|
|
|
|
2022-02-09 19:09:48 +00:00
|
|
|
ARG MARKDOWNLINT_VERSION=master
|
2021-09-08 16:03:13 +00:00
|
|
|
|
|
|
|
RUN set -ex && \
|
2022-02-09 19:04:48 +00:00
|
|
|
apk update && \
|
|
|
|
apk upgrade && \
|
|
|
|
apk add --no-cache git
|
2021-09-08 16:03:13 +00:00
|
|
|
|
2022-02-09 19:04:48 +00:00
|
|
|
RUN git clone --branch ${MARKDOWNLINT_VERSION} https://github.com/igorshubovych/markdownlint-cli /markdownlint && \
|
|
|
|
cd /markdownlint && \
|
|
|
|
npm install --production && \
|
|
|
|
npm install --global
|
2021-09-08 16:03:13 +00:00
|
|
|
|
2022-02-10 08:40:13 +00:00
|
|
|
WORKDIR /work
|
|
|
|
|
|
|
|
RUN ln -fs /work /workspace
|
|
|
|
|
2022-02-09 19:04:48 +00:00
|
|
|
ENTRYPOINT [ "/usr/local/bin/markdownlint" ]
|