Skip to content

Commit

Permalink
Merge pull request #671 from akunzai/dockerfile
Browse files Browse the repository at this point in the history
Simplify the Dockerfile
  • Loading branch information
akunzai authored Oct 19, 2024
2 parents 23c4904 + 0d6d171 commit 1c31f4d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .devcontainer/keycloak/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 1c31f4d

Please sign in to comment.