2023-11-07 15:45:00 +00:00
|
|
|
FROM quay.io/thegeeklab/alpine:latest@sha256:e86840e5ad608b2951e0d1c9e131756c1685f5b1bea408438e7f7b80c7c119f4
|
2020-07-03 08:24:05 +00:00
|
|
|
|
2020-12-20 21:47:44 +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"
|
2023-11-07 15:36:22 +00:00
|
|
|
LABEL org.opencontainers.image.url="https://gitea.rknet.org/container/vnu"
|
|
|
|
LABEL org.opencontainers.image.source="https://gitea.rknet.org/container/vnu"
|
|
|
|
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/container/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
|
2022-05-23 20:24:55 +00:00
|
|
|
ENV VALIDATOR_VERSION="${BUILD_VERSION:-latest}"
|
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}' ..." && \
|
2022-06-21 13:15:23 +00:00
|
|
|
# curl -SsfL "https://github.com/validator/validator/releases/download/${VALIDATOR_VERSION}/vnu.jar_${VALIDATOR_VERSION}.zip" | \
|
2022-05-23 20:24:55 +00:00
|
|
|
# bsdtar -xf - -C /var/www/app/ --strip-components=1 dist/vnu.jar && \
|
2022-06-21 13:15:23 +00:00
|
|
|
curl -SsfL "https://github.com/validator/validator/releases/download/${VALIDATOR_VERSION}/vnu.jar" -o /var/www/app/vnu.jar | \
|
2020-07-03 08:24:05 +00:00
|
|
|
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"]
|