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/Containerfile
Renovator Bot 82c0a0a633
All checks were successful
ci/woodpecker/pr/build-package Pipeline was successful
ci/woodpecker/pr/build-container Pipeline was successful
ci/woodpecker/pr/docs Pipeline was successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/build-container Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
chore(docker): update docker.io/thegeeklab/alpine:latest docker digest to 735da7d
2023-12-18 20:39:20 +00:00

34 lines
1.4 KiB
Docker

FROM docker.io/thegeeklab/alpine:latest@sha256:735da7d38631fe2ad663fa519ca0f1940c3cfc3888f80bc71be8dc95f982c62c
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/container/vnu"
LABEL org.opencontainers.image.source="https://gitea.rknet.org/container/vnu"
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/container/vnu"
ARG BUILD_VERSION
# renovate: datasource=github-releases depName=validator/validator
ENV VALIDATOR_VERSION="${BUILD_VERSION:-latest}"
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 -SsfL "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 -SsfL "https://github.com/validator/validator/releases/download/${VALIDATOR_VERSION}/vnu.jar" -o /var/www/app/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"]