markdownlint-docker/Dockerfile
CSRBot 9a0d322068
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(deps): update docker.io/library/node docker tag to v23
2024-12-03 13:21:08 +01:00

20 lines
466 B
Docker

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