markdownlint-docker/Dockerfile

20 lines
466 B
Docker
Raw Normal View History

FROM docker.io/library/node:20.5.1-alpine3.18 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 && \
apk update && \
apk upgrade && \
apk add --no-cache git
2021-09-08 16:03:13 +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
ENTRYPOINT [ "/usr/local/bin/markdownlint" ]