+Speaking of files, if you want to copy content into the container, you should do so using the `%files` section, where each is a pair of `<source>` and `<destination>`, where the file or expression to be copied is a path on your host, and the destination is a path in the container. Here we are using the traditional `cp` command, so the <a href="https://linux.die.net/man/1/cp" target="_blank">same conventions apply</a>. Note that the `%files` section is executed **after** `%post`, so if you need files before that, the current workaround is to copy your files from the host to `$SINGULARITY_ROOTFS` in the `%setup` section. We plan to change this to make different sections for pre and post files in Singularity 2.4, and please comment <a href="https://github.com/singularityware/singularity/issues/674" target="_blank">here</a> if you have thoughts or suggestions.
0 commit comments