mirror of
https://github.com/moby/buildkit.git
synced 2026-08-08 00:30:45 +00:00
Merge pull request #995 from StefanSchoof/localfileexample
add testresult example to readme
This commit is contained in:
13
README.md
13
README.md
@@ -184,6 +184,19 @@ The local client will copy the files directly to the client. This is useful if B
|
||||
buildctl build ... --output type=local,dest=path/to/output-dir
|
||||
```
|
||||
|
||||
To export specific files use multi-stage builds with a scratch stage and copy the needed files into that stage with `COPY --from`.
|
||||
```dockerfile
|
||||
...
|
||||
FROM scratch as testresult
|
||||
|
||||
COPY --from=builder /usr/src/app/testresult.xml .
|
||||
...
|
||||
```
|
||||
|
||||
```
|
||||
buildctl build ... --opt target=testresult --output type=local,dest=path/to/output-dir
|
||||
```
|
||||
|
||||
Tar exporter is similar to local exporter but transfers the files through a tarball.
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user