2022-02-14 15:03:03 +00:00
# Keycloak Image
2022-02-15 07:11:44 +00:00
For more information, see the [Running Keycloak in a container guide ](https://www.keycloak.org/server/containers ).
2022-02-14 15:03:03 +00:00
## Build the image
It is possible to download the Keycloak distribution from a URL:
2024-05-15 08:18:42 +00:00
docker build --build-arg KEYCLOAK_DIST=http://< HOST > :< PORT > /keycloak-< VERSION > .tar.gz -t < YOUR_TAG > .
2022-02-14 15:03:03 +00:00
2023-05-02 08:13:23 +00:00
Alternatively, you need to build the local distribution first, then copy the distributions tar package in the `container` folder and point the build command to use the image:
2022-02-14 15:03:03 +00:00
cp $KEYCLOAK_SOURCE/quarkus/dist/target/keycloak-< VERSION > .tar.gz .
2024-05-15 08:18:42 +00:00
docker build --build-arg KEYCLOAK_DIST=keycloak-< VERSION > .tar.gz -t < YOUR_TAG > .