stack-orchestrator/container-build/cerc-keycloak/Dockerfile

13 lines
638 B
Docker
Raw Normal View History

2022-12-13 04:36:33 +00:00
FROM maven:3-eclipse-temurin-11-alpine AS builder
RUN apk add --update --no-cache git
WORKDIR /build
2022-12-13 22:41:45 +00:00
RUN git clone https://github.com/cerc-io/keycloak-api-key-demo.git && \
cd keycloak-api-key-demo && \
2022-12-14 01:16:43 +00:00
git checkout '69c1903a6f1bdecb654e9982708239c698e3d648' && \
2022-12-13 04:36:33 +00:00
mvn -f api-key-module package
2022-12-13 06:13:06 +00:00
FROM quay.io/keycloak/keycloak:20.0
2022-12-13 04:36:33 +00:00
COPY --from=builder /build/keycloak-api-key-demo//api-key-module/target/deploy/* /opt/keycloak/providers/
2022-12-13 22:41:45 +00:00
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