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
Robert Kaussow 73c1f1ceb1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
add wrapper script
2020-07-03 10:45:57 +02:00

31 lines
1009 B
Docker

FROM xoxys/alpine
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
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"
ARG BUILD_VERSION
ENV VALIDATOR_VERSION="${BUILD_VERSION:-20.6.30}"
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 -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 []
ENTRYPOINT ["/bin/vnu"]