Cloud API Overview > @adpt/cloud > docker > File
docker.File interface
A dynamically-created file that can be used during the build of a Docker image.
Signature:
export interface File
Remarks
These File
objects are used to create a temporary "scratch" image in a multi-stage build that contains only the specified files. Then, in later stages of that build, the files within the temporary image can be copied into the later stage image.
Properties
Property | Type | Description |
---|---|---|
contents | Buffer | string | The contents of the file. |
path | string | The path in the temporary image where the file will be created. |