29 lines
1020 B
Docker
29 lines
1020 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=20.6.30
|
||
|
ENV VALIDATOR_VERSION="${BUILD_VERSION}"
|
||
|
|
||
|
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 ["java", "-jar", "/var/www/app/vnu.jar"]
|