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

33 lines
1.3 KiB
Docker
Raw Normal View History

FROM thegeeklab/alpine:latest@sha256:7ab3a1db03fdd8c44d41fe4f301261cb7709b4774f96cd9fc31f36ca3b4c1fa5
2020-07-03 08:24:05 +00:00
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
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"
2020-07-03 08:24:05 +00:00
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"]