markdownlint-docker/Dockerfile

16 lines
419 B
Docker
Raw Normal View History

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