Renovator Bot
f46a23e90d
All checks were successful
continuous-integration/drone/pr Build is passing
33 lines
1.0 KiB
Docker
33 lines
1.0 KiB
Docker
FROM node:12-alpine
|
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>" \
|
|
org.label-schema.name="markdownlint-cli" \
|
|
org.label-schema.vcs-url="https://gitea.rknet.org/docker/markdownlint-cli" \
|
|
org.label-schema.vendor="Robert Kaussow" \
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
ARG BUILD_VERSION
|
|
# renovate: datasource=npm depName=markdownlint-cli
|
|
ENV MARKDOWNLINT_VERSION="${BUILD_VERSION:-0.25.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"]
|