# ExecutableResource

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

A resource that represents a specified executable process.

## Definition

```typescript
interface ExecutableResource
  extends IComputeResource,
    IResource,
    IResourceWithArgs,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport {
  publishAsDockerFile(configure: (obj: ContainerResource) => Promise<void>): ExecutableResource;
  withExecutableCommand(command: string): ExecutableResource;
  withWorkingDirectory(workingDirectory: string): ExecutableResource;
}
```

## Methods

- [publishAsDockerFile](/reference/api/typescript/aspire.hosting/executableresource/publishasdockerfile.md) -- `method` -- Publishes an executable as a Docker file
    ```typescript
  publishAsDockerFile(configure: (obj: ContainerResource) => Promise<void>): ExecutableResource
  ```
- [withExecutableCommand](/reference/api/typescript/aspire.hosting/executableresource/withexecutablecommand.md) -- `method` -- Sets the command for the executable resource.
    ```typescript
  withExecutableCommand(command: string): ExecutableResource
  ```
- [withWorkingDirectory](/reference/api/typescript/aspire.hosting/executableresource/withworkingdirectory.md) -- `method` -- Sets the working directory for the executable resource.
    ```typescript
  withWorkingDirectory(workingDirectory: string): ExecutableResource
  ```
