Keycloak
1FROM registry.access.redhat.com/ubi9 AS ubi-micro-build
2
3ADD target/ubi-null.sh /tmp/
4RUN bash /tmp/ubi-null.sh java-17-openjdk-headless glibc-langpack-en
5
6FROM registry.access.redhat.com/ubi9-micro
7ENV LANG en_US.UTF-8
8
9COPY --from=ubi-micro-build /tmp/null/rootfs/ /
10
11ADD --chown=1000:0 target/quarkus-app/ /opt/keycloak
12
13RUN chmod -R g+rwX /opt/keycloak && \
14echo "keycloak:x:0:root" >> /etc/group && \
15echo "keycloak:x:1000:0:keycloak user:/opt/keycloak:/sbin/nologin" >> /etc/passwd
16
17USER 1000
18
19WORKDIR /opt/keycloak
20
21ENTRYPOINT [ "java", "-Djava.util.logging.manager=org.jboss.logmanager.LogManager", "-jar", "quarkus-run.jar" ]
22