mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
406a8560c6
* add AgentWithHostedMCP sample * Update dotnet/samples/HostedAgents/AgentWithHostedMCP/README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update dotnet/samples/HostedAgents/AgentWithHostedMCP/AgentWithHostedMCP.csproj Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update dotnet/samples/HostedAgents/AgentWithHostedMCP/AgentWithHostedMCP.csproj Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update dotnet/samples/HostedAgents/AgentWithHostedMCP/AgentWithHostedMCP.csproj Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Use explicit type for mcpTool --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
21 lines
549 B
Docker
21 lines
549 B
Docker
# Build the application
|
|
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build
|
|
WORKDIR /src
|
|
|
|
# Copy files from the current directory on the host to the working directory in the container
|
|
COPY . .
|
|
|
|
RUN dotnet restore
|
|
RUN dotnet build -c Release --no-restore
|
|
RUN dotnet publish -c Release --no-build -o /app
|
|
|
|
# Run the application
|
|
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final
|
|
WORKDIR /app
|
|
|
|
# Copy everything needed to run the app from the "build" stage.
|
|
COPY --from=build /app .
|
|
|
|
EXPOSE 8088
|
|
ENTRYPOINT ["dotnet", "AgentWithHostedMCP.dll"]
|