markdownlint-docker/Dockerfile
Markus Pesch 6037be6651
Some checks failed
continuous-integration/drone/push Build is failing
fix: build markdownlint-ci from source code
2022-02-09 20:04:48 +01:00

16 lines
412 B
Docker

FROM docker.io/library/node:lts-alpine3.15 AS build
ARG MARKDOWNLINT_VERSION
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
ENTRYPOINT [ "/usr/local/bin/markdownlint" ]