Interface: BuildImageOptions
Properties
abortController?
optionalabortController:AbortController
The abort controller for running the build image operation
Defined in
packages/extension-api/src/extension-api.d.ts:3211
buildargs?
optionalbuildargs:object
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
Defined in
packages/extension-api/src/extension-api.d.ts:3295
cachefrom?
optionalcachefrom:string
JSON array of images used for build cache resolution.
Defined in
packages/extension-api/src/extension-api.d.ts:3237
containerFile?
optionalcontainerFile:string
Specifies a Containerfile which contains instructions for building the image
Defined in
packages/extension-api/src/extension-api.d.ts:3191
cpuperiod?
optionalcpuperiod:number
The length of a CPU period in microseconds.
Defined in
packages/extension-api/src/extension-api.d.ts:3281
cpuquota?
optionalcpuquota:number
Microseconds of CPU time that the container can get in a CPU period.
Defined in
packages/extension-api/src/extension-api.d.ts:3286
cpusetcpus?
optionalcpusetcpus:number
CPUs in which to allow execution (e.g., 0-3, 0,1).
Defined in
packages/extension-api/src/extension-api.d.ts:3276
cpushares?
optionalcpushares:number
CPU shares (relative weight).
Defined in
packages/extension-api/src/extension-api.d.ts:3271
extrahosts?
optionalextrahosts:string
Extra hosts to add to /etc/hosts
Defined in
packages/extension-api/src/extension-api.d.ts:3216
forcerm?
optionalforcerm:boolean
Default: false
Always remove intermediate containers, even upon failure.
Defined in
packages/extension-api/src/extension-api.d.ts:3256
labels?
optionallabels:object
Arbitrary key/value labels to set on the image, as a JSON map of string pairs.
Index Signature
[key: string]: string
Defined in
packages/extension-api/src/extension-api.d.ts:3310
memory?
optionalmemory:number
Set memory limit for build.
Defined in
packages/extension-api/src/extension-api.d.ts:3261
memswap?
optionalmemswap:number
Total memory (memory + swap). Set as -1 to disable swap.