This repository has been archived on 2024-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
vnu/Dockerfile

32 lines
1.1 KiB
Docker
Raw Normal View History

2020-09-21 20:11:02 +00:00
FROM thegeeklab/alpine
2020-07-03 08:24:05 +00:00
2020-10-26 19:08:11 +00:00
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>" \
2020-07-03 08:24:05 +00:00
org.label-schema.name="vNu" \
org.label-schema.vcs-url="https://gitea.rknet.org/docker/vnu" \
org.label-schema.vendor="Robert Kaussow" \
org.label-schema.schema-version="1.0"
2020-07-03 08:30:31 +00:00
ARG BUILD_VERSION
2020-10-18 20:44:56 +00:00
# renovate: datasource=github-releases depName=validator/validator
2020-07-03 08:30:31 +00:00
ENV VALIDATOR_VERSION="${BUILD_VERSION:-20.6.30}"
2020-07-03 08:24:05 +00:00
2020-07-03 08:45:57 +00:00
ADD overlay/ /
2020-07-03 08:24:05 +00:00
RUN apk add --update --no-cache --virtual .build-deps libarchive-tools curl && \
apk --update add openjdk8 && \
mkdir -p /var/www/app && \
VALIDATOR_VERSION="${VALIDATOR_VERSION##v}" && \
echo "Installing v.Nu Validator version '${VALIDATOR_VERSION}' ..." && \
curl -SsL "https://github.com/validator/validator/releases/download/${VALIDATOR_VERSION}/vnu.jar_${VALIDATOR_VERSION}.zip" | \
bsdtar -xf - -C /var/www/app/ --strip-components=1 dist/vnu.jar && \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \
rm -rf /root/.cache/
WORKDIR /var/www/app
USER root
CMD []
2020-07-03 08:45:57 +00:00
ENTRYPOINT ["/bin/vnu"]