From 011d108fff1554e1784e0b9c70552e45ded7ec50 Mon Sep 17 00:00:00 2001 From: Sebastian Schuster Date: Thu, 10 Feb 2022 08:01:51 +0100 Subject: [PATCH] 10073 reduced quarkus image size (#10074) --- quarkus/container/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quarkus/container/Dockerfile b/quarkus/container/Dockerfile index 433cb06da3..230eef3edb 100644 --- a/quarkus/container/Dockerfile +++ b/quarkus/container/Dockerfile @@ -15,16 +15,16 @@ RUN (cd /tmp/keycloak && \ RUN mv /tmp/keycloak/keycloak-* /opt/keycloak +RUN chmod -R g+rwX /opt/keycloak + FROM registry.access.redhat.com/ubi8-minimal -COPY --from=build-env /opt/keycloak /opt/keycloak +COPY --from=build-env --chown=1000:0 /opt/keycloak /opt/keycloak RUN microdnf update -y && \ microdnf install -y java-11-openjdk-headless && microdnf clean all && rm -rf /var/cache/yum/* && \ echo "keycloak:x:0:root" >> /etc/group && \ - echo "keycloak:x:1000:0:keycloak user:/opt/keycloak:/sbin/nologin" >> /etc/passwd && \ - chown -R keycloak:root /opt/keycloak && \ - chmod -R g+rwX /opt/keycloak + echo "keycloak:x:1000:0:keycloak user:/opt/keycloak:/sbin/nologin" >> /etc/passwd USER 1000