mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
5c70e143a0
* update .net sdk and runtime images and update nuget packages to the latests versions * align version of roslyn analyzers * unlock roslyn analyzer packages
21 lines
562 B
Docker
21 lines
562 B
Docker
# Build the application
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.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 -f net10.0
|
|
|
|
# Run the application
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.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"]
|