particle-os-cli/template/templates/modules/copy/copy.tsp
2024-10-13 19:06:50 -04:00

21 lines
605 B
Text

import "@typespec/json-schema";
using TypeSpec.JsonSchema;
@jsonSchema("/modules/copy.json")
model CopyModule {
/** The copy module is a short-hand method of adding a COPY instruction into the Containerfile.
* https://blue-build.org/reference/modules/copy/
*/
type: "copy";
/** Equivalent to the --from property in a COPY statement, use to specify an image to copy from.
* By default, the COPY source is the build environment's file tree.
*/
from?: string;
/** Path to source file or directory. */
src: string;
/** Path to destination file or directory. */
dest: string;
}