Skip to content

Instantly share code, notes, and snippets.

@opdavies
Created September 30, 2021 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save opdavies/e605e9db6b9d3cdc3c63770906ce0e13 to your computer and use it in GitHub Desktop.
Save opdavies/e605e9db6b9d3cdc3c63770906ce0e13 to your computer and use it in GitHub Desktop.
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