# copyFrom

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

Adds a COPY --from statement to a Dockerfile stage

## Definition

```typescript
interface DockerfileStage {
  // ... omitted for brevity
  copyFrom(
    from: string,
    source: string,
    destination: string,
    chown?: string): DockerfileStage
}
```

## Parameters

- `from` (`string`)
- `source` (`string`)
- `destination` (`string`)
- `chown` (`string`) `optional`

## Returns

[DockerfileStage](/reference/api/typescript/aspire.hosting/dockerfilestage.md)

## Applies to

- [DockerfileStage](/reference/api/typescript/aspire.hosting/dockerfilestage.md)
