docs/current_docs/partials/cookbook/filesystems/_copy-file-runtime.mdx
The following Dagger Function accepts a File argument and copies the specified file to the Dagger module runtime container. This makes it possible to add one or more files to the runtime container and manipulate them using custom logic.
Examples
Copy the data.json host file to the runtime container and process it:
<Tabs groupId="shell">
<TabItem value="System shell">
```shell
dagger -c 'copy-file ../data.json'
```
</TabItem>
<TabItem value="Dagger Shell">
```shell title="First type 'dagger' for interactive mode."
copy-file ../data.json
```
</TabItem>
<TabItem value="Dagger CLI">
```shell
dagger call copy-file --source=../data.json
```
</TabItem>
</Tabs>