How to create a customization container image for Keycloak

This page describes how to create a container image with custom themes and providers to use along with VSHNKeycloak service.

  1. Open a command line and create two directories.

    mkdir themes && mkdir providers
  2. Place your themes and providers in respective directories.

  3. Create the following docker file.

    cat <<EOF >>Dockerfile
    FROM alpine
    
    COPY themes /themes
    COPY providers /providers
    EOF
  4. Build your Docker image.

    docker build -t myuser/keycloak-custom:v1 .
  5. Push your image to the registry.