This repository has been archived on 2024-09-08. You can view files and clone it, but cannot push or open issues or pull requests.
iwakura-keycloak/Dockerfile
hexlocation pc 0d6eb2c535 new shit
2024-07-11 20:57:26 +02:00

17 lines
609 B
Docker

FROM quay.io/keycloak/keycloak:25.0.1 as comp
# Configure a database vendor
ENV KC_DB=postgres
WORKDIR /opt/keycloak
# for demonstration purposes only, please make sure to use proper certificates in production instead
RUN keytool -genkeypair -storepass password -storetype PKCS12 -keyalg RSA -keysize 2048 -dname "CN=server" -alias server -ext "SAN:c=DNS:localhost,IP:127.0.0.1" -keystore conf/server.keystore
RUN /opt/keycloak/bin/kc.sh build
FROM quay.io/keycloak/keycloak:latest
COPY --from=comp /opt/keycloak/ /opt/keycloak/
COPY ./themes /opt/keycloak/themes
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]