markdownlint-docker/Dockerfile
Markus Pesch 4eff9bdbb0
All checks were successful
continuous-integration/drone/push Build is passing
fix: bump to v0.32.0
2022-07-18 10:31:06 +02:00

20 lines
463 B
Docker

FROM docker.io/library/node:lts-alpine3.16 AS build
ARG MARKDOWNLINT_VERSION=master
RUN set -ex && \
apk update && \
apk upgrade && \
apk add --no-cache git
RUN git clone --branch ${MARKDOWNLINT_VERSION} https://github.com/igorshubovych/markdownlint-cli /markdownlint && \
cd /markdownlint && \
npm install --production && \
npm install --global
WORKDIR /work
RUN ln -fs /work /workspace
ENTRYPOINT [ "/usr/local/bin/markdownlint" ]