mdns-explorer/docker/Dockerfile.rpm-txt
Mark Nellemann ff68f18ac3
Some checks failed
continuous-integration/drone/tag Build is failing
Test drone builds.
2023-08-14 17:58:57 +02:00

15 lines
513 B
Docker

FROM docker.io/almalinux:8 AS build
RUN dnf -y install unzip zip rpm-build
RUN sh -c "curl -s 'https://get.sdkman.io' | bash"
RUN sh -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk install java 17.0.8-zulu"
COPY ./src /tmp/prj/src
COPY ./gradle /tmp/prj/gradle
COPY [ "gradlew", "build.gradle", "gradle.properties", "settings.gradle", "/tmp/prj/" ]
WORKDIR /tmp/prj
RUN sh -c "source $HOME/.sdkman/bin/sdkman-init.sh && ./gradlew --no-daemon clean build jpackage"
COPY --from=build build/jpackage/* build/