How to create a customization container image for Keycloak
This page describes how to create a container image with custom themes, providers and other custom files to use along with VSHNKeycloak
service.
-
Open a command line and create two directories.
mkdir themes && mkdir providers
-
Place your themes and providers in respective directories.
-
For other custom files and folders, create them as necessary:
mkdir my-folder && touch pw-blacklist.txt
-
Create the following docker file.
cat <<EOF >>Dockerfile FROM alpine COPY themes /themes COPY providers /providers # Custom files COPY pw-blacklist.txt /pw-blacklist.txt COPY my-folder /my-folder EOF
-
Build your Docker image.
docker build -t myuser/keycloak-custom:v1 .
-
Push your image to the registry.