Robert Kaussow
45c020a9b5
All checks were successful
continuous-integration/drone/push Build is passing
31 lines
1014 B
Docker
31 lines
1014 B
Docker
FROM thegeeklab/alpine
|
|
|
|
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
|
|
org.label-schema.name="vNu" \
|
|
org.label-schema.vcs-url="https://gitea.rknet.org/docker/vnu" \
|
|
org.label-schema.vendor="Robert Kaussow" \
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
ARG BUILD_VERSION
|
|
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"]
|