mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-07 22:27:42 +08:00
run composer during install as non-root user
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
bc03d030c9
commit
0dc630b5a9
1 changed files with 3 additions and 2 deletions
|
@ -72,9 +72,10 @@ RUN set -e && \
|
|||
cd /var/www/docker-aio; \
|
||||
git clone https://github.com/nextcloud-releases/all-in-one.git --depth 1 .; \
|
||||
find ./ -not -path ./php -maxdepth 1 -mindepth 1 -delete; \
|
||||
chown www-data:www-data -R /var/www/docker-aio; \
|
||||
cd php; \
|
||||
composer install --no-dev; \
|
||||
composer clearcache; \
|
||||
sudo -u www-data composer install --no-dev; \
|
||||
sudo -u www-data composer clearcache; \
|
||||
cd ..; \
|
||||
rm -f /usr/local/bin/composer; \
|
||||
chmod 770 -R ./; \
|
||||
|
|
Loading…
Reference in a new issue