FROM quay.io/keycloak/keycloak:21.0.1

# Make the realm configuration available for import
COPY setup.json /opt/keycloak_import/

# Import the realm and user
RUN /opt/keycloak/bin/kc.sh import --file /opt/keycloak_import/setup.json


# Import the realm on start-up
CMD ["start-dev"]