diff --git a/.devcontainer/keycloak/Dockerfile b/.devcontainer/keycloak/Dockerfile index 1d8fb936..e8da2018 100644 --- a/.devcontainer/keycloak/Dockerfile +++ b/.devcontainer/keycloak/Dockerfile @@ -1,18 +1,14 @@ # https://www.keycloak.org/server/containers ARG KEYCLOAK_VERSION=26.0.1 -# https://hub.docker.com/_/buildpack-deps -FROM buildpack-deps:curl AS downloader -ARG KEYCLOAK_VERSION -# https://github.com/jacekkow/keycloak-protocol-cas -RUN curl -Lo /tmp/keycloak-protocol-cas.jar https://github.com/jacekkow/keycloak-protocol-cas/releases/download/${KEYCLOAK_VERSION}/keycloak-protocol-cas-${KEYCLOAK_VERSION}.jar; - # https://github.com/keycloak/keycloak/tree/main/quarkus/container # https://quay.io/repository/keycloak/keycloak?tab=tags FROM quay.io/keycloak/keycloak:${KEYCLOAK_VERSION} +ARG KEYCLOAK_VERSION # add CAS protocol for Keycloak -COPY --from=downloader --chown=keycloak:keycloak /tmp/keycloak-protocol-cas.jar /opt/keycloak/providers/ +# https://github.com/jacekkow/keycloak-protocol-cas +ADD --chown=keycloak:keycloak https://github.com/jacekkow/keycloak-protocol-cas/releases/download/${KEYCLOAK_VERSION}/keycloak-protocol-cas-${KEYCLOAK_VERSION}.jar /opt/keycloak/providers/keycloak-protocol-cas.jar WORKDIR /opt/keycloak