Skip to content

Commit

Permalink
Merge pull request #640 from nextcloud/fix/shallow-server/clone-as-ww…
Browse files Browse the repository at this point in the history
…w-data

fix(shallow-server): clone server repo as www-data
  • Loading branch information
SystemKeeper authored Jun 15, 2024
2 parents ca63bd1 + dac8782 commit b9dddd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shallow-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ WORKDIR /var/www/html
# so rename it first and then remove it
RUN mv /var/www/html/ /var/www/html2/ && rm -rf /var/www/html2/
RUN mkdir -p /var/www/html
RUN chown www-data:www-data .

USER www-data
RUN git clone --depth 1 https://github.com/nextcloud/server.git .
RUN git submodule update --init --depth 1
USER root

RUN chown -R www-data:www-data .
RUN chsh -s /bin/bash www-data

ADD initnc.sh /usr/local/bin/
Expand Down

0 comments on commit b9dddd9

Please sign in to comment.