add wrapper script
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Robert Kaussow 2020-07-03 10:45:57 +02:00
parent 267c6f9477
commit 73c1f1ceb1
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 7 additions and 1 deletions

View File

@ -9,6 +9,8 @@ LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
ARG BUILD_VERSION ARG BUILD_VERSION
ENV VALIDATOR_VERSION="${BUILD_VERSION:-20.6.30}" ENV VALIDATOR_VERSION="${BUILD_VERSION:-20.6.30}"
ADD overlay/ /
RUN apk add --update --no-cache --virtual .build-deps libarchive-tools curl && \ RUN apk add --update --no-cache --virtual .build-deps libarchive-tools curl && \
apk --update add openjdk8 && \ apk --update add openjdk8 && \
mkdir -p /var/www/app && \ mkdir -p /var/www/app && \
@ -25,4 +27,4 @@ WORKDIR /var/www/app
USER root USER root
CMD [] CMD []
ENTRYPOINT ["java", "-jar", "/var/www/app/vnu.jar"] ENTRYPOINT ["/bin/vnu"]

4
overlay/bin/vnu Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
set -eo pipefail
exec java -jar /var/www/app/vnu.jar "$@"