FROM thegeeklab/alpine:latest@sha256:bf19aa122e09cd10a1c02b40e166ed4d7b252c85d0aa0d21b31c9b0c8cdf9182 LABEL maintainer="Robert Kaussow " LABEL org.opencontainers.image.authors="Robert Kaussow " LABEL org.opencontainers.image.title="vNu" LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/vnu" LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/vnu" LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/vnu" ARG BUILD_VERSION # renovate: datasource=github-releases depName=validator/validator ENV VALIDATOR_VERSION="${BUILD_VERSION:-latest}" ADD overlay/ / 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 -SsfL "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 && \ curl -SsfL "https://github.com/validator/validator/releases/download/${VALIDATOR_VERSION}/vnu.jar" -o /var/www/app/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 [] ENTRYPOINT ["/bin/vnu"]