Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhunghan authored Nov 7, 2023
1 parent 4079d15 commit fb4e4d2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG KEYCLOAK_VERSION=22.0.4

# See "Installing additional RPM packages" https://www.keycloak.org/server/containers
FROM registry.access.redhat.com/ubi9 AS ubi-micro-build
ARG DEV_DEPENDECIES="tar gzip"
ARG DEV_DEPENDECIES="tar gzip util-linux"
RUN mkdir -p /mnt/rootfs
RUN dnf -y update
RUN dnf install --installroot /mnt/rootfs ${DEV_DEPENDECIES} --releasever 9 --setopt install_weak_deps=false --nodocs -y && \
Expand All @@ -15,7 +15,4 @@ RUN dnf install --installroot /mnt/rootfs ${DEV_DEPENDECIES} --releasever 9 --se
FROM quay.io/keycloak/keycloak:${KEYCLOAK_VERSION}
COPY --from=ubi-micro-build /mnt/rootfs /

# use root user https://github.com/keycloak/keycloak/blob/main/quarkus/container/Dockerfile#L28
USER 0

ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]

0 comments on commit fb4e4d2

Please sign in to comment.