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
Renovator Bot b8878f117d
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
chore(deps): update thegeeklab/alpine:latest docker digest to 8b18407
2021-03-23 23:05:25 +00:00

33 lines
1.3 KiB
Docker

FROM thegeeklab/alpine:latest@sha256:8b18407d3fb22d87e4da6f13e4bd43fc64314f323e4f29f8e5f5c10e14290da1
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"
ARG BUILD_VERSION
# renovate: datasource=github-releases depName=validator/validator
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"]