Skip to content

Commit

Permalink
Switch to UBI based Temurin JDK image.
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelhoral committed Jul 27, 2024
1 parent 1e8d6bf commit 3dbeb7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3dbeb7f

Please sign in to comment.