markdownlint-docker/Dockerfile
Renovate Bot 02ec086d7f
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
chore(deps): update docker.io/library/alpine docker tag to v3.15
2022-01-30 18:35:30 +01:00

19 lines
531 B
Docker

FROM docker.io/library/alpine:3.15
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 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 ["."]