From 8a9dd9ff207e0cc31a1110bdc5b64b1d5db8a986 Mon Sep 17 00:00:00 2001 From: Paurikova2 Date: Tue, 17 Mar 2026 09:55:22 +0100 Subject: [PATCH 1/2] add USER root to allow /install creation --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 3a02248dedf2..71734b2c119d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,8 @@ FROM ${DOCKER_REGISTRY}/dspace/dspace-dependencies:${DSPACE_VERSION} AS build ARG TARGET_DIR=dspace-installer WORKDIR /app # The dspace-installer directory will be written to /install +# Run as root to create /install (base image may default to non-root dspace user) +USER root RUN mkdir /install \ && chown -Rv dspace: /install \ && chown -Rv dspace: /app From a01560fc834ffbd53eb2a1ea8a7bbc586aee8123 Mon Sep 17 00:00:00 2001 From: Paurikova2 Date: Tue, 17 Mar 2026 09:59:11 +0100 Subject: [PATCH 2/2] fix comment --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 71734b2c119d..aea3a14b88e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ FROM ${DOCKER_REGISTRY}/dspace/dspace-dependencies:${DSPACE_VERSION} AS build ARG TARGET_DIR=dspace-installer WORKDIR /app # The dspace-installer directory will be written to /install -# Run as root to create /install (base image may default to non-root dspace user) +# Run as root to create /install USER root RUN mkdir /install \ && chown -Rv dspace: /install \