2024-10-05 01:03:30 +00:00
|
|
|
FROM docker.io/node:lts-alpine@sha256:c13b26e7e602ef2f1074aef304ce6e9b7dd284c419b35d89fcf3cc8e44a8def9
|
2020-10-27 20:54:28 +00:00
|
|
|
|
2020-12-20 21:47:44 +00: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"
|
2023-11-08 08:03:03 +00:00
|
|
|
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
|
2020-10-27 20:54:28 +00:00
|
|
|
|
|
|
|
# renovate: datasource=npm depName=markdownlint-cli
|
2024-09-29 12:09:14 +00:00
|
|
|
ENV MARKDOWNLINT_VERSION="${MARKDOWNLINT_VERSION:-0.42.0}"
|
2020-10-27 20:54:28 +00:00
|
|
|
|
|
|
|
ENV FORCE_COLOR=true \
|
|
|
|
NPM_CONFIG_LOGLEVEL=error
|
|
|
|
|
|
|
|
COPY overlay/ /
|
|
|
|
|
2023-11-14 14:27:24 +00:00
|
|
|
RUN apk --no-cache upgrade libcrypto3 libssl3 && \
|
|
|
|
MARKDOWNLINT_VERSION="${MARKDOWNLINT_VERSION##v}" && \
|
2020-10-27 20:54:28 +00:00
|
|
|
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"]
|