# DockerfileBuilderCallbackContext

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Provides context information for Dockerfile build callbacks.

## Definition

```go
type DockerfileBuilderCallbackContext interface{}
```

## Properties

- `Builder`: [`DockerfileBuilder`](/reference/api/go/aspire.hosting/dockerfilebuilder.md) `get` -- Gets the Dockerfile builder instance.
- `CancellationToken`: `*CancellationToken` `get` -- Gets the cancellation token to observe while waiting for the task to complete.
- `Resource`: [`Resource`](/reference/api/go/aspire.hosting/resource.md) `get` -- Gets the resource being built.
- `Services`: [`ServiceProvider`](/reference/api/go/aspire.hosting/serviceprovider.md) `get` -- Gets the service provider for dependency injection.
