Skip to content

Commit 6a15c35

Browse files
authored
Merge pull request #1170 from dataquest-dev/palo-docker-user-fix
Palo docker user fix
2 parents 5903ef0 + 25815ff commit 6a15c35

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ RUN ln -s $DSPACE_INSTALL/webapps/server /usr/local/tomcat/webapps/server
8181
WORKDIR /usr/local/tomcat/bin
8282
RUN chmod u+x redebug.sh undebug.sh custom_run.sh
8383

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
84+
# We create a 'dspace' user to run DSpace instead of running as root
85+
RUN useradd -u 1100 -m -s /bin/bash dspace \
86+
&& chown -Rv dspace: /dspace /usr/local/tomcat
8687

87-
USER ubuntu
88+
USER dspace

0 commit comments

Comments
 (0)