markdownlint-cli/Containerfile.multiarch
Renovator Bot 1a8e7fae35
All checks were successful
ci/woodpecker/manual/build-package Pipeline was successful
ci/woodpecker/manual/build-container Pipeline was successful
ci/woodpecker/manual/docs Pipeline was successful
ci/woodpecker/manual/notify Pipeline was successful
chore(deps): update dependency markdownlint-cli to v0.41.0 (#155)
Reviewed-on: #155
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2024-06-01 13:00:29 +02:00

36 lines
1.4 KiB
Plaintext

FROM docker.io/node:lts-alpine@sha256:928b24aaadbd47c1a7722c563b471195ce54788bf8230ce807e1dd500aec0549
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/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"]