From 5d482658a7f8b8a14f75fee278c1d5498b52f267 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Fri, 16 Dec 2022 14:15:56 -0600 Subject: [PATCH] Download pre-built keycloak api-key-module-0.1.jar rather than building it. (#66) --- container-build/cerc-keycloak/Dockerfile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/container-build/cerc-keycloak/Dockerfile b/container-build/cerc-keycloak/Dockerfile index 038f578c..0e70a0b0 100644 --- a/container-build/cerc-keycloak/Dockerfile +++ b/container-build/cerc-keycloak/Dockerfile @@ -1,12 +1,4 @@ -FROM maven:3-eclipse-temurin-11-alpine AS builder -RUN apk add --update --no-cache git -WORKDIR /build -RUN git clone https://github.com/cerc-io/keycloak-api-key-demo.git && \ - cd keycloak-api-key-demo && \ - git checkout '60c48b5c3e562c6cf2c85cfdd8f08145b0ebac5a' && \ - mvn -f api-key-module package - FROM quay.io/keycloak/keycloak:20.0 -COPY --from=builder /build/keycloak-api-key-demo//api-key-module/target/deploy/* /opt/keycloak/providers/ WORKDIR /opt/keycloak/providers RUN curl -L https://github.com/aerogear/keycloak-metrics-spi/releases/download/2.5.3/keycloak-metrics-spi-2.5.3.jar --output keycloak-metrics-spi.jar +RUN curl -L https://github.com/cerc-io/keycloak-api-key-demo/releases/download/v0.1/api-key-module-0.1.jar --output api-key-module.jar