-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (18 loc) · 1.36 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM quay.io/keycloak/keycloak AS builder
ARG KC_HEALTH_ENABLED KC_METRICS_ENABLED KC_FEATURES KC_DB KC_HTTP_ENABLED PROXY_ADDRESS_FORWARDING QUARKUS_TRANSACTION_MANAGER_ENABLE_RECOVERY KC_HOSTNAME KC_LOG_LEVEL KC_DB_POOL_MIN_SIZE
ADD --chown=keycloak:keycloak https://github.com/klausbetz/apple-identity-provider-keycloak/releases/download/1.7.1/apple-identity-provider-1.7.1.jar /opt/keycloak/providers/apple-identity-provider-1.7.1.jar
ADD --chown=keycloak:keycloak https://github.com/wadahiro/keycloak-discord/releases/download/v0.5.0/keycloak-discord-0.5.0.jar /opt/keycloak/providers/keycloak-discord-0.5.0.jar
COPY /theme/keywind /opt/keycloak/themes/keywind
RUN /opt/keycloak/bin/kc.sh build
FROM fedora AS bins
RUN curl -fsSL https://github.com/caddyserver/caddy/releases/download/v2.7.4/caddy_2.7.4_linux_amd64.tar.gz | tar -zxvf - caddy
RUN curl -fsSL https://github.com/nicolas-van/multirun/releases/download/1.1.3/multirun-x86_64-linux-gnu-1.1.3.tar.gz | tar -zxvf - multirun
FROM quay.io/keycloak/keycloak
COPY java.config /etc/crypto-policies/back-ends/java.config
COPY --from=builder /opt/keycloak/ /opt/keycloak/
COPY --from=bins --chmod=0755 /multirun /usr/bin/multirun
COPY --from=bins --chmod=0755 /caddy /usr/bin/caddy
WORKDIR /app
COPY Caddyfile ./
ENTRYPOINT ["multirun"]
CMD ["/opt/keycloak/bin/kc.sh start --optimized --import-realm", "caddy run 2>&1"]