# CopyFilePattern Constructors

- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Type: [CopyFilePattern](/reference/api/csharp/aspire.hosting.javascript/copyfilepattern.md)
- Kind: `Constructors`
- Members: `1`

Represents a file pattern for copying dependency files in a Dockerfile.

## CopyFilePattern(string, string)

- Name: `Constructor(string, string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/CopyFilePattern.cs#L11)

Represents a file pattern for copying dependency files in a Dockerfile.

```csharp
public record CopyFilePattern
{
    public CopyFilePattern(
        string Source,
        string Destination)
    {
        // ...
    }
}
```

## Parameters

- `Source` (`string`)
  The source pattern for files to copy (e.g., "package*.json").
- `Destination` (`string`)
  The destination path where files should be copied (e.g., "./").
