2021-10-22 20:01:56 +00:00
|
|
|
FROM node:lts-alpine3.13@sha256:648524b42c37d38c599267b363a55635b06cc8c0f24f98473dbe891b0ea115e3
|
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"
|
|
|
|
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"
|
2020-10-27 20:54:28 +00:00
|
|
|
|
|
|
|
ARG BUILD_VERSION
|
|
|
|
# renovate: datasource=npm depName=markdownlint-cli
|
2021-10-08 12:34:55 +00:00
|
|
|
ENV MARKDOWNLINT_VERSION="${BUILD_VERSION:-0.29.0}"
|
2020-10-27 20:54:28 +00:00
|
|
|
|
|
|
|
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"]
|