Only the version is needed to build the Docker image. (#38418)

Closes #38459

Signed-off-by: Alexander Nikolaev <zvava@ya.ru>
This commit is contained in:
Alexander Nikolaev 2025-04-01 13:06:41 +03:00 committed by GitHub
parent 85737f52b5
commit 1e235088c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
FROM registry.access.redhat.com/ubi9 AS ubi-micro-build
ENV KEYCLOAK_VERSION 999.0.0-SNAPSHOT
ARG KEYCLOAK_VERSION=999.0.0-SNAPSHOT
ARG KEYCLOAK_DIST=https://github.com/keycloak/keycloak/releases/download/$KEYCLOAK_VERSION/keycloak-$KEYCLOAK_VERSION.tar.gz
RUN dnf install -y tar gzip

View File

@ -3,6 +3,10 @@ For more information, see the [Running Keycloak in a container guide](https://ww
## Build the image
It is possible to download the Keycloak distribution from GitHub:
docker build --build-arg KEYCLOAK_VERSION=<VERSION> -t <YOUR_TAG> .
It is possible to download the Keycloak distribution from a URL:
docker build --build-arg KEYCLOAK_DIST=http://<HOST>:<PORT>/keycloak-<VERSION>.tar.gz -t <YOUR_TAG> .