We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5903ef0 + 25815ff commit 6a15c35Copy full SHA for 6a15c35
1 file changed
Dockerfile
@@ -81,7 +81,8 @@ RUN ln -s $DSPACE_INSTALL/webapps/server /usr/local/tomcat/webapps/server
81
WORKDIR /usr/local/tomcat/bin
82
RUN chmod u+x redebug.sh undebug.sh custom_run.sh
83
84
-# For security reason (requirement on some cloud platforms) we want run dspace as non-root user.
85
-RUN chown -R ubuntu:ubuntu /dspace /usr/local/tomcat
+# We create a 'dspace' user to run DSpace instead of running as root
+RUN useradd -u 1100 -m -s /bin/bash dspace \
86
+ && chown -Rv dspace: /dspace /usr/local/tomcat
87
-USER ubuntu
88
+USER dspace
0 commit comments