Moved repository to git.kokuwa.io
This commit is contained in:
parent
9552221cc4
commit
a523f7ba6e
22 changed files with 693 additions and 562 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
FROM maven:3.9.10-eclipse-temurin-17 AS build
|
||||
SHELL ["/usr/bin/bash", "-e", "-u", "-c"]
|
||||
WORKDIR /build
|
||||
ARG MAVEN_ARGS="--batch-mode --color=always --no-transfer-progress"
|
||||
ARG MAVEN_MIRROR_CENTRAL
|
||||
RUN mkdir "$HOME/.m2" && printf "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\
|
||||
<settings>\n\
|
||||
<localRepository>/tmp/mvn-repo</localRepository>\n\
|
||||
<mirrors><mirror><url>%s</url><mirrorOf>central</mirrorOf></mirror></mirrors>\n\
|
||||
</settings>" "${MAVEN_MIRROR_CENTRAL:-https://repo.maven.apache.org/maven2}" > "$HOME/.m2/settings.xml"
|
||||
COPY . .
|
||||
RUN --mount=type=cache,target=/tmp/mvn-repo mvn package -DskipTests -P=-dev
|
||||
|
||||
FROM busybox:1.37.0-uclibc
|
||||
COPY --from=build --chmod=444 /build/target/keycloak-event-metrics.jar /opt/keycloak/providers/keycloak-event-metrics.jar
|
Loading…
Add table
Add a link
Reference in a new issue