FROM node:lts-alpine3.15@sha256:cd3a7004267e419477bbfc50e0502df8607a0b9b4465092f6e2c2ce4092faa45 LABEL maintainer="Robert Kaussow " LABEL org.opencontainers.image.authors="Robert Kaussow " 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" ARG BUILD_VERSION # renovate: datasource=npm depName=markdownlint-cli ENV MARKDOWNLINT_VERSION="${BUILD_VERSION:-0.35.0}" 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"]