chore(keycloak): allow enablling build features

This commit is contained in:
Johanna Dorothea Reichmann 2023-11-07 21:12:34 +01:00
parent c2294740a8
commit f91116e7da
Signed by: transcaffeine
GPG key ID: 03624C433676E465

View file

@ -20,7 +20,10 @@ RUN {{ keycloak_container_working_directory }}/bin/kc.sh --verbose \
{% for argument in keycloak_container_build_flags | dict2items(key_name='flag', value_name='value') %}
--{{- argument['flag'] -}}{{- argument['value'] | default(false, true) | ternary('=' + argument['value'], '') }} \
{% endfor%}
build
build \
{% if keycloak_container_build_features | default([]) | length > 0 %}
--features="{{ keycloak_container_build_features | join(',') }}"
{% endif %}
FROM {{ keycloak_container_upstream_image_name }}:{{ keycloak_version }}