Lychee pictures import

I have a host mapping where I put my pictures. it is exposed like the example

- /path/to/pictures:/pictures

The trouble is that when i want to import from server /pictures in lychee it import the different folders that are in the /pictures docker. So files that reside in /pictures are also imported. it creates an import loop

How do I expose only the import folder

root@76893b85bd87:/# ls -l pictures
total 20
drwxr-xr-x 2 abc users 4096 Feb  9 13:14 big
drwxr-xr-x 2 abc users 4096 Feb  9 13:29 import
drwxr-xr-x 2 abc users 4096 Feb  9 13:14 medium
drwxr-xr-x 2 abc users 4096 Feb  9 13:14 small
drwxr-xr-x 2 abc users 4096 Feb  9 13:14 thumb

/pictures is the destination the imported pictures will be imported to

You are setting the import location and the destination to the same folder.

Post the full command you used to create the container