2024-11-29 14:20:26 +00:00
|
|
|
FROM docker.io/library/node:23.3.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" ]
|