<commit_before>
All build relevant configuration is contained in the `<build>` section
of an image configuration. The following configuration options are supported:

[[config-image-build]]
.Build configuration (<<config-image, <image> >>)
[cols="1,5"]
|===
| Element | Description

| <<config-image-build-assembly, *assembly*>>
| specifies the assembly configuration as described in <<build-assembly,Build Assembly>>

| <<build-buildargs, *buildArgs*>>
| Map specifying the value of https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables-build-arg[Docker build args]
which should be used when building the image with an external Dockerfile which uses build arguments. The key-value syntax is the same as when defining Maven properties (or `labels` or `env`).
This argument is ignored when no external Dockerfile is used. Build args can also be specified as properties as
described in <<build-buildargs,Build Args>>

| *buildOptions*
| Map specifying the build options to provide to the docker daemon when building the image. These options map to the ones listed as query parameters in the
https://docs.docker.com/engine/reference/api/docker_remote_api_v1.24/#build-image-from-a-dockerfile[Docker Remote API] and are restricted to simple options
(e.g.: memory, shmsize). If you use the respective configuration options for build options natively supported by the build configuration (i.e. `nocache`, `cleanup` for `forcerm=1` and `buildArgs`) then these will override any corresponding options given here. The key-value syntax is the same as when defining environment variables or labels as described in <<misc-env,Setting Environment Variables and Labels>>.

| *cleanup*
| Cleanup dangling (untagged) images after each build (including any containers created from them). Default is `try` which tries to remove the old image, but doesn't fail the build if this is not possible because e.g. the image is still used by a running container. Use `remove` if you want to fail the build and `none` if no cleanup is requested.

| <<misc-startup, *cmd*>>
| A command to execute by default (i.e. if no command is provided when a container for this image is started). See <<misc-startup,Startup Arguments>> for details.

| *compression*
| The compression mode how the build archive is transmitted to the docker daemon (`{plugin}:build`) and how docker build archives are attached to this build as sources (`{plugin}:source`). The value can be `none` (default), `gzip` or `bzip2`.

| *dockerFile*
| Path to a `Dockerfile` which also triggers _Dockerfile mode_. See <<external-dockerfile, External Dockerfile>> for details.

| *dockerFileDir*
| Path to a directory holding a `Dockerfile` and switch on _Dockerfile mode_. See <<external-dockerfile, External Dockerfile>> for details.


| *dockerArchive*
| Path to a saved image archive which is then imported. See <<external-dockerfile, Docker archive>> for details.

| <<misc-startup, *entryPoint*>><commit_msg>Fix element name<commit_after>
All build relevant configuration is contained in the `<build>` section
of an image configuration. The following configuration options are supported:

[[config-image-build]]
.Build configuration (<<config-image, <image> >>)
[cols="1,5"]
|===
| Element | Description

| <<config-image-build-assembly, *assembly*>>
| specifies the assembly configuration as described in <<build-assembly,Build Assembly>>

| <<build-buildargs, *args*>>
| Map specifying the value of https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables-build-arg[Docker build args]
which should be used when building the image with an external Dockerfile which uses build arguments. The key-value syntax is the same as when defining Maven properties (or `labels` or `env`).
This argument is ignored when no external Dockerfile is used. Build args can also be specified as properties as
described in <<build-buildargs,Build Args>>

| *buildOptions*
| Map specifying the build options to provide to the docker daemon when building the image. These options map to the ones listed as query parameters in the
https://docs.docker.com/engine/reference/api/docker_remote_api_v1.24/#build-image-from-a-dockerfile[Docker Remote API] and are restricted to simple options
(e.g.: memory, shmsize). If you use the respective configuration options for build options natively supported by the build configuration (i.e. `nocache`, `cleanup` for `forcerm=1` and `buildArgs`) then these will override any corresponding options given here. The key-value syntax is the same as when defining environment variables or labels as described in <<misc-env,Setting Environment Variables and Labels>>.

| *cleanup*
| Cleanup dangling (untagged) images after each build (including any containers created from them). Default is `try` which tries to remove the old image, but doesn't fail the build if this is not possible because e.g. the image is still used by a running container. Use `remove` if you want to fail the build and `none` if no cleanup is requested.

| <<misc-startup, *cmd*>>
| A command to execute by default (i.e. if no command is provided when a container for this image is started). See <<misc-startup,Startup Arguments>> for details.

| *compression*
| The compression mode how the build archive is transmitted to the docker daemon (`{plugin}:build`) and how docker build archives are attached to this build as sources (`{plugin}:source`). The value can be `none` (default), `gzip` or `bzip2`.

| *dockerFile*
| Path to a `Dockerfile` which also triggers _Dockerfile mode_. See <<external-dockerfile, External Dockerfile>> for details.

| *dockerFileDir*
| Path to a directory holding a `Dockerfile` and switch on _Dockerfile mode_. See <<external-dockerfile, External Dockerfile>> for details.


| *dockerArchive*
| Path to a saved image archive which is then imported. See <<external-dockerfile, Docker archive>> for details.

| <<misc-startup, *entryPoint*>>
{'fraction_non_alphanumeric': 0.09203896540141082, 'fraction_numerical': 0.0023513604299630502, 'mean_word_length': 5.107692307692307, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3741293', 'n_tokens_mistral': 1609, 'n_tokens_neox': 1530, 'n_words': 753}