Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bump keycloak/keycloak from 20.0.3-0 to 21.0.0-0 #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
FROM quay.io/keycloak/keycloak:20.0.3-0 as builder
FROM ghcr.io/radiorabe/ubi9-minimal:0.2.2 as downloader

# Theme version, see https://github.com/radiorabe/keycloak-theme-rabe/releases
ARG THEME_VERSION=0.3.0

RUN curl -L -o /keycloak-theme-rabe.jar \
https://github.com/radiorabe/keycloak-theme-rabe/releases/download/v$THEME_VERSION/keycloak-theme-rabe.jar


FROM quay.io/keycloak/keycloak:21.0.0-0 as builder

# Enable health and metrics support
ENV KC_HEALTH_ENABLED=true
ENV KC_METRICS_ENABLED=true
Expand All @@ -12,16 +18,8 @@ ENV KC_DB=postgres

WORKDIR /opt/keycloak

# install curl so we can download our theme
USER 0
RUN microdnf install -y \
curl \
&& microdnf clean all
USER 1000

RUN curl -L -o providers/keycloak-theme-rabe-$THEME_VERSION.jar \
https://github.com/radiorabe/keycloak-theme-rabe/releases/download/v$THEME_VERSION/keycloak-theme-rabe.jar \
&& /opt/keycloak/bin/kc.sh build
COPY --from=downloader /keycloak-theme-rabe.jar /opt/keycloak/providers/
RUN /opt/keycloak/bin/kc.sh build


FROM ghcr.io/radiorabe/ubi9-minimal:0.2.2
Expand Down