Type Alias: ContainerBuildOpts
ContainerBuildOpts:
object
Type declaration
buildArgs?
optional
buildArgs:BuildArg
[]
Additional build arguments.
dockerfile?
optional
dockerfile:string
Path to the Dockerfile to use.
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.