# Build Constructors

- Package: [Aspire.Hosting.Docker](/reference/api/csharp/aspire.hosting.docker.md)
- Type: [Build](/reference/api/csharp/aspire.hosting.docker/build.md)
- Kind: `Constructors`
- Members: `1`

Represents the build configuration for a service within a Docker Compose file. This class is used to define various build parameters such as context, dockerfile, arguments, target stages, cache sources, and labels.

## Build

- Name: `Constructor`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Build.cs#L39-L63)

```csharp
public sealed class Build
{
    public Build()
    {
        // ...
    }
}
```
