db620d33df
dotnet-build-and-test / dotnet-test-functions (push) Has been cancelled
dotnet-build-and-test / paths-filter (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Debug, windows-latest, net9.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net8.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-foundry-hosted-it (push) Has been cancelled
dotnet-build-and-test / dotnet-build-and-test-check (push) Has been cancelled
dotnet-build-and-test / Integration Test Report (push) Has been cancelled
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
25 lines
1.2 KiB
Docker
25 lines
1.2 KiB
Docker
# Dockerfile for contributors building from the agent-framework repository source.
|
|
#
|
|
# This project uses ProjectReference to the local Microsoft.Agents.AI.Foundry and
|
|
# Microsoft.Agents.AI.LocalCodeAct sources, which means a standard multi-stage
|
|
# Docker build cannot resolve dependencies outside this folder. Instead, pre-publish
|
|
# the app targeting the container runtime and copy the output into the container:
|
|
#
|
|
# dotnet publish -c Debug -f net10.0 -r linux-musl-x64 --self-contained false -o out
|
|
# docker build -f Dockerfile.contributor -t hosted-local-codeact .
|
|
# docker run --rm -p 8088:8088 -e AGENT_NAME=hosted-local-codeact -e AZURE_BEARER_TOKEN=$AZURE_BEARER_TOKEN --env-file .env hosted-local-codeact
|
|
#
|
|
# For end-users consuming the NuGet package (not ProjectReference), use the standard
|
|
# Dockerfile which performs a full dotnet restore + publish inside the container.
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine AS final
|
|
WORKDIR /app
|
|
|
|
# Install Python 3 so LocalCodeAct can spawn the embedded runner / validator.
|
|
RUN apk add --no-cache python3
|
|
|
|
COPY out/ .
|
|
EXPOSE 8088
|
|
ENV ASPNETCORE_URLS=http://+:8088
|
|
ENV LOCAL_CODEACT_PYTHON=python3
|
|
ENTRYPOINT ["dotnet", "HostedLocalCodeAct.dll"]
|