Skip to content

Instantly share code, notes, and snippets.

@opdavies
Created Sep 30, 2021
Embed
What would you like to do?
DOCKER_BUILDKIT=1 docker image build -f markdownlint.Dockerfile -t markdownlint .
docker run --rm \
-v $(pwd)/.markdownlint.yaml:/root/.markdownlint.yaml \
-v $(pwd)/source:/data \
markdownlint
FROM node:14-alpine
ENTRYPOINT ["markdownlint"]
CMD ["/data"]
WORKDIR /root
RUN npm install -g markdownlint-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment