From 3dbeb7f449a5f5feb75fba693323bf3045ee0427 Mon Sep 17 00:00:00 2001 From: Pavel Horal Date: Sun, 28 Jul 2024 00:05:06 +0200 Subject: [PATCH] Switch to UBI based Temurin JDK image. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 97cefba01..589a4a2fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,13 +32,13 @@ RUN \ unzip openidm-zip/target/wrenidm-$WRENIDM_VERSION.zip -d /build -FROM eclipse-temurin:17-jdk +FROM eclipse-temurin:17-jdk-ubi9-minimal # Create wrenidm user ARG WRENIDM_UID=1000 ARG WRENIDM_GID=1000 -RUN addgroup --gid ${WRENIDM_GID} wrenidm && \ - adduser --uid ${WRENIDM_UID} --gid ${WRENIDM_GID} --system wrenidm +RUN groupadd --gid ${WRENIDM_GID} wrenidm && \ + useradd --uid ${WRENIDM_UID} --gid ${WRENIDM_GID} --system wrenidm # Deploy wrenidm project COPY --chown=wrenidm:root --from=project-build /build/wrenidm /opt/wrenidm