Docker nextcloud:fpm not copying all files on startup

Iโ€™m running Nextcloud using the official nextcloud:fpm Docker image. However, upon startup, not all files are copied into /var/www/html, even though they are available in /usr/src/nextcloud/ inside the container.

Only the following files are copied:

3rdparty  composer.json  console.php  cron.php    index.php  occ  package-lock.json  remote.php  status.php
AUTHORS   composer.lock  COPYING      index.html  nextcloud-init-sync.lock  package.json  public.php  robots.txt

But folders like config/, apps/, core/, and lib/ are missing, causing the installation to fail.

Expected behavior: On first startup, Nextcloud should copy all necessary files to /var/www/html (or the mounted volume).

Has anyone else experienced this issue? Is there a workaround to force Nextcloud to properly copy all required files on startup?

Please post:

  • the Compose file youโ€™re using
  • the container startup log (a fresh one, with new/clean volumes)

Actually, everything worked, pls close this thread, Iโ€™ve I just was doing a couple of things wrong