markdownlint-cli/Dockerfile

34 lines
1.3 KiB
Docker
Raw Normal View History

FROM node:lts-alpine3.13@sha256:bd7f3879132b126e5f6770e7e50e223c2e74c1f223d27bfd06dd71a17ebb8fc3
2020-10-27 21:54:28 +01:00
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="markdownlint-cli"
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/markdownlint-cli"
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/markdownlint-cli"
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/markdownlint-cli"
2020-10-27 21:54:28 +01:00
ARG BUILD_VERSION
# renovate: datasource=npm depName=markdownlint-cli
chore(deps): update dependency markdownlint-cli to v0.28.1 (#32) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli) | minor | `0.27.1` -> `0.28.1` | --- ### Release Notes <details> <summary>igorshubovych/markdownlint-cli</summary> ### [`v0.28.1`](https://github.com/igorshubovych/markdownlint-cli/releases/v0.28.1) [Compare Source](https://github.com/igorshubovych/markdownlint-cli/compare/v0.28.0...v0.28.1) - Fix outdated reference to `rc` (thanks [@&#8203;shhdgit](https://github.com/shhdgit)!) ### [`v0.28.0`](https://github.com/igorshubovych/markdownlint-cli/releases/v0.28.0) [Compare Source](https://github.com/igorshubovych/markdownlint-cli/compare/v0.27.1...v0.28.0) - Add `--json` option to output results in JSON format - Switch `rc` dependency to `run-con` to address `CVE-2020-7788` - Update all dependencies via `Dependabot` </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://gitea.rknet.org/docker/markdownlint-cli/pulls/32 Co-authored-by: Renovator Bot <renovator@rknet.org> Co-committed-by: Renovator Bot <renovator@rknet.org>
2021-07-25 14:29:56 +02:00
ENV MARKDOWNLINT_VERSION="${BUILD_VERSION:-0.28.1}"
2020-10-27 21:54:28 +01:00
ENV FORCE_COLOR=true \
NPM_CONFIG_LOGLEVEL=error
COPY overlay/ /
RUN MARKDOWNLINT_VERSION="${MARKDOWNLINT_VERSION##v}" && \
MARKDOWNLINT_MAJOR="${MARKDOWNLINT_VERSION%%.*}" && \
if [ -z "${MARKDOWNLINT_MAJOR//[0-9]}" ] && [ -n "$MARKDOWNLINT_MAJOR" ]; then \
echo "Installing markdownlint-cli version '$MARKDOWNLINT_VERSION' ..." && \
npm install -g markdownlint-cli@"$MARKDOWNLINT_VERSION"; \
else \
echo "Installing latest markdownlint-cli ..." && \
npm install -g markdownlint-cli; \
fi && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/*
USER root
CMD []
ENTRYPOINT ["/bin/markdownlint-cli"]