diff --git a/Dockerfile b/Dockerfile index 3a02248dedf..aea3a14b88e 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 +USER root RUN mkdir /install \ && chown -Rv dspace: /install \ && chown -Rv dspace: /app