markdownlint-docker/Dockerfile

20 lines
463 B
Docker
Raw Permalink Normal View History

2022-07-18 08:31:06 +00:00
FROM docker.io/library/node:lts-alpine3.16 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" ]