markdownlint-docker/Dockerfile
CSRBot ba7c2825de
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
chore(deps): update docker.io/library/node docker tag to v22.10.0
2024-10-17 22:15:52 +00:00

20 lines
467 B
Docker

FROM docker.io/library/node:22.10.0-alpine3.20 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" ]