Interface: BuildImageOptions
Defined in: packages/extension-api/src/extension-api.d.ts:3601
Properties
abortController?
optionalabortController:AbortController
Defined in: packages/extension-api/src/extension-api.d.ts:3625
The abort controller for running the build image operation
buildargs?
optionalbuildargs:object
Defined in: packages/extension-api/src/extension-api.d.ts:3709
JSON map of string pairs for build-time variables. Users pass these values at build-time. Docker uses the
buildargs as the environment context for commands run via the Dockerfile RUN instruction, or for variable
expansion in other Dockerfilev instructions. This is not meant for passing secret values.
For example, the build arg FOO=bar would become {"FOO":"bar"} in JSON. This would result in the query
parameter buildargs={"FOO":"bar"}. Note that {"FOO":"bar"} should be URI component encoded.
Index Signature
[key: string]: string
cachefrom?
optionalcachefrom:string
Defined in: packages/extension-api/src/extension-api.d.ts:3651
JSON array of images used for build cache resolution.
containerFile?
optionalcontainerFile:string
Defined in: packages/extension-api/src/extension-api.d.ts:3605
Specifies a Containerfile which contains instructions for building the image
cpuperiod?
optionalcpuperiod:number
Defined in: packages/extension-api/src/extension-api.d.ts:3695
The length of a CPU period in microseconds.
cpuquota?
optionalcpuquota:number
Defined in: packages/extension-api/src/extension-api.d.ts:3700
Microseconds of CPU time that the container can get in a CPU period.
cpusetcpus?
optionalcpusetcpus:number
Defined in: packages/extension-api/src/extension-api.d.ts:3690
CPUs in which to allow execution (e.g., 0-3, 0,1).
cpushares?
optionalcpushares:number
Defined in: packages/extension-api/src/extension-api.d.ts:3685
CPU shares (relative weight).
extrahosts?
optionalextrahosts:string
Defined in: packages/extension-api/src/extension-api.d.ts:3630
Extra hosts to add to /etc/hosts
forcerm?
optionalforcerm:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3670
Default: false
Always remove intermediate containers, even upon failure.
labels?
optionallabels:object
Defined in: packages/extension-api/src/extension-api.d.ts:3724
Arbitrary key/value labels to set on the image, as a JSON map of string pairs.
Index Signature
[key: string]: string
memory?
optionalmemory:number
Defined in: packages/extension-api/src/extension-api.d.ts:3675
Set memory limit for build.
memswap?
optionalmemswap:number
Defined in: packages/extension-api/src/extension-api.d.ts:3680
Total memory (memory + swap). Set as -1 to disable swap.
networkmode?
optionalnetworkmode:string
Defined in: packages/extension-api/src/extension-api.d.ts:3731
Sets the networking mode for the run commands during build. Supported standard values are: bridge,
host, none, and container:<name|id>. Any other value is taken as a custom network's name or ID
to which this container should connect to.
nocache?
optionalnocache:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3752
Default: false
Do not use the cache when building the image.
outputs?
optionaloutputs:string
Defined in: packages/extension-api/src/extension-api.d.ts:3745
Default: ""
BuildKit output configuration
platform?
optionalplatform:string
Defined in: packages/extension-api/src/extension-api.d.ts:3615
Set the os/arch of the built image (and its base image, when using one) to the provided value instead of using the current operating system and architecture of the host
provider?
optionalprovider:ContainerProviderConnection
Defined in: packages/extension-api/src/extension-api.d.ts:3620
Set the provider to use, if not we will try select the first one available (sorted in favor of Podman)
pull?
optionalpull:string|boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3656
Attempt to pull the image even if an older image exists locally.
q?
optionalq:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3646
Default: false
Suppress verbose build output.
remote?
optionalremote:string
Defined in: packages/extension-api/src/extension-api.d.ts:3639
A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called Dockerfile and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the dockerfile parameter is also specified, there must be a file with the corresponding path inside the tarball.
rm?
optionalrm:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3663
Default: true
Remove intermediate containers after a successful build.
shmsize?
optionalshmsize:number
Defined in: packages/extension-api/src/extension-api.d.ts:3714
Size of /dev/shm in bytes. The size must be greater than 0. If omitted the system uses 64MB.
squash?
optionalsquash:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3719
Squash the resulting images layers into a single layer.
tag?
optionaltag:string
Defined in: packages/extension-api/src/extension-api.d.ts:3610
Specifies the name which is assigned to the resulting image if the build process completes successfully
target?
optionaltarget:string
Defined in: packages/extension-api/src/extension-api.d.ts:3738
Default: ""
Target build stage