# Optimal Dockerfiles for .NET (https://depot.dev/docs/container-builds/optimal-dockerfiles/dotnet)

We've assembled some optimal Dockerfiles for building Docker images for .NET using different application types. These Dockerfiles are what we recommend when building Docker images for .NET applications, but may require modifications based on your specific use case.

## Guides

* [Dockerfile for .NET ASP.NET Core](/docs/container-builds/optimal-dockerfiles/dotnet-aspnetcore-dockerfile)
* [Dockerfile for .NET Worker Service](/docs/container-builds/optimal-dockerfiles/dotnet-worker-dockerfile)

## For AI Agents

The full site index is at [llms.txt](https://depot.dev/llms.txt). Append `.md` to any documentation, blog, changelog, or customer URL to fetch its markdown source directly.