Initial Commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-09-08 18:03:13 +02:00
commit c681952348
10 changed files with 496 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM docker.io/library/alpine:3.12
ARG NODEJS_VERSION=12.22.6-r0
ARG MARKDOWNLINT_VERSION
RUN set -ex && \
apk add --no-cache nodejs=${NODEJS_VERSION} nodejs-npm=${NODEJS_VERSION}
RUN echo ${MARKDOWNLINT_VERSION}
RUN if [ ! -z "${MARKDOWNLINT_VERSION}" ]; then set -ex; npm install -g markdownlint-cli@${MARKDOWNLINT_VERSION}; fi
RUN if [ -z "${MARKDOWNLINT_VERSION}" ]; then set -ex; npm install -g markdownlint-cli; fi
RUN set -ex && \
npm cache clean --force && \
apk del nodejs-npm
WORKDIR /work
ENTRYPOINT ["/usr/bin/markdownlint"]
CMD ["."]