Describe the solution you'd like
DockerFiles allow copies of *.py or myFolder. spython could expand the wildcard options to actual files (if existing) and traverse the folder (if existing) to copy individual files. This is not perfect but handles the shortcoming of singularity def file format in the spirit of reproducibility (explicit list instead of wildcards)
Describe alternatives you've considered
Show an error if such things (wildcard, folder, ...) are found as the image WILL be broken.