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

34 lines
1.4 KiB
Docker
Raw Normal View History

FROM thegeeklab/alpine:latest@sha256:5b4e219b9f2131019f26fc31402680e1074fa97486ee615a06c744b6bdba9163
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
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}' ..." && \
# 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 && \
curl -SsL "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"]