Skip to main content

Method chaining

All template methods return the template instance, allowing for fluent API usage:

User and workdir

Set the working directory and user for the template:

Copying files

Copy files from your local filesystem to the template:

File operations

Perform various file operations during template build:

Installing packages

Install packages using package managers:

Git operations

Clone Git repositories during template build (requires git to be installed):

Environment variables

Environment variables set in template definition are only available during template build. How to setup environment variables in sandbox?
Set environment variables in the template:

Running commands

Execute shell commands during template build: