markdownlint-docker/Dockerfile
Markus Pesch 40cf201e55
Some checks failed
continuous-integration/drone/push Build is failing
chore(deps): update docker.io/library/node docker tag to 20.5.1-alpine3.18
2023-09-03 13:07:10 +02:00

20 lines
466 B
Docker

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