From a1dbdeae0db3095b27effc5a41a01984b3ae2f14 Mon Sep 17 00:00:00 2001 From: royalcat Date: Tue, 30 Jul 2024 13:42:26 +0300 Subject: [PATCH] wtf --- Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ce06ff4..ad29cb2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,15 +23,18 @@ ENV KC_CACHE=local ENV KC_HTTP_ENABLED=true ENV KC_PROXY_HEADERS=xforwarded -ADD --chown=keycloak:keycloak --chmod=644 \ - https://github.com/wadahiro/keycloak-discord/releases/download/v0.5.0/keycloak-discord-0.5.0.jar \ - /opt/keycloak/providers/discord.jar -# COPY --from=discord_builder --chown=keycloak:keycloak --chmod=644 \ -# /keycloak-discord/target/keycloak-discord-0.5.1-SNAPSHOT.jar \ +# ADD --chown=keycloak:keycloak --chmod=644 \ +# https://github.com/wadahiro/keycloak-discord/releases/download/v0.5.0/keycloak-discord-0.5.0.jar \ # /opt/keycloak/providers/discord.jar +COPY --from=discord_builder --chown=keycloak:keycloak --chmod=644 \ + /keycloak-discord/target/keycloak-discord-0.5.1-SNAPSHOT.jar \ + /opt/keycloak/providers/discord.jar WORKDIR /opt/keycloak RUN /opt/keycloak/bin/kc.sh build FROM quay.io/keycloak/keycloak:${KC_VERSION} COPY --from=builder /opt/keycloak/ /opt/keycloak/ +COPY --from=discord_builder --chown=keycloak:keycloak --chmod=644 \ + /keycloak-discord/target/keycloak-discord-0.5.1-SNAPSHOT.jar \ + /opt/keycloak/providers/discord.jar ENTRYPOINT ["/opt/keycloak/bin/kc.sh"] \ No newline at end of file