FROM docker.io/node:lts-alpine@sha256:34b7aa411056c85dbf71d240d26516949b3f72b318d796c26b57caaa1df5639a 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/container/markdownlint-cli" LABEL org.opencontainers.image.source="https://gitea.rknet.org/container/markdownlint-cli" LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/container/markdownlint-cli" ARG MARKDOWNLINT_VERSION # renovate: datasource=npm depName=markdownlint-cli ENV MARKDOWNLINT_VERSION="${MARKDOWNLINT_VERSION:-0.41.0}" ENV FORCE_COLOR=true \ NPM_CONFIG_LOGLEVEL=error COPY overlay/ / RUN apk --no-cache upgrade libcrypto3 libssl3 && \ 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"]