mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
c1830c20c9
* move catalog samples to the HostedAgents folder * move the catalog samples' projects to the HostedAgents folder * host agents, add dockerfile, add http for testing, and use explicit nuget packages * add agents` manifests * Update dotnet/samples/HostedAgents/AgentWithTextSearchRag/Dockerfile Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update dotnet/samples/HostedAgents/AgentsInWorkflows/Dockerfile Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update dotnet/samples/HostedAgents/AgentWithTextSearchRag/agent.yaml Co-authored-by: westey <164392973+westey-m@users.noreply.github.com> * Update dotnet/samples/HostedAgents/AgentsInWorkflows/agent.yaml Co-authored-by: westey <164392973+westey-m@users.noreply.github.com> * remove BOMs, decrease identation and remove unecessary `parameters` node. * remove unnecessary analyzers and align the packages' versions * remove end-of-line breaks in agents' descriptions, eliminated unnecessary double quotes around versions, and changed the descriptions to be more agent-centric rather than sample-centric * use DefaultAzureCredential --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: westey <164392973+westey-m@users.noreply.github.com>
21 lines
553 B
Docker
21 lines
553 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", "AgentWithTextSearchRag.dll"]
|