markdownlint-cli/Containerfile.multiarch
Robert Kaussow ae4f76850a
Some checks failed
ci/woodpecker/push/build-container Pipeline is running
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
ci/woodpecker/manual/build-package Pipeline was successful
ci/woodpecker/manual/build-container Pipeline failed
ci/woodpecker/manual/docs unknown status
ci/woodpecker/manual/notify Pipeline was successful
use unversioned alpine tag for node images
2023-11-08 09:17:39 +01:00

35 lines
1.3 KiB
Plaintext

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