Type Alias: ContainerBuildOpts
ContainerBuildOpts =
object
Properties
buildArgs?
optional
buildArgs:BuildArg
[]
Additional build arguments.
dockerfile?
optional
dockerfile:string
Path to the Dockerfile to use.
noInit?
optional
noInit:boolean
If set, skip the automatic init process injected into containers created by RUN statements.
This should only be used if the user requires that their exec processes be the pid 1 process in the container. Otherwise it may result in unexpected behavior.
secrets?
optional
secrets:Secret
[]
Secrets to pass to the build.
They will be mounted at /run/secrets/[secret-name] in the build container
They can be accessed in the Dockerfile using the "secret" mount type and mount path /run/secrets/[secret-name], e.g. RUN --mount=type=secret,id=my-secret curl [http://example.com?token=$(cat /run/secrets/my-secret)](http://example.com?token=$(cat /run/secrets/my-secret))
target?
optional
target:string
Target build stage to build.