fix the deletion of files and folders during mastercontainer build

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-06-16 15:14:40 +02:00
parent 8e42220e4e
commit e22afe6031

View file

@ -62,7 +62,7 @@ RUN set -ex; \
chmod +x /usr/local/bin/composer; \ chmod +x /usr/local/bin/composer; \
cd /var/www/docker-aio; \ cd /var/www/docker-aio; \
git clone https://github.com/nextcloud-releases/all-in-one.git --depth 1 .; \ git clone https://github.com/nextcloud-releases/all-in-one.git --depth 1 .; \
find ./ -maxdepth 1 -mindepth 1 -not -path ./php -delete; \ find ./ -maxdepth 1 -mindepth 1 -not -path ./php -exec rm -r {} \; ; \
chown www-data:www-data -R /var/www/docker-aio; \ chown www-data:www-data -R /var/www/docker-aio; \
cd php; \ cd php; \
sudo -u www-data composer install --no-dev; \ sudo -u www-data composer install --no-dev; \