Bringing the MCP server into the repo

This commit is contained in:
Aaron Powell
2025-09-10 17:11:55 +10:00
parent b469c8943d
commit c030f3cc89
39 changed files with 4513 additions and 1 deletions

21
mcp-server/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
# syntax=docker/dockerfile:1
FROM mcr.microsoft.com/dotnet/sdk:10.0-noble-aot AS build
WORKDIR /src
# Copy everything and restore/publish
COPY . .
ARG CONFIG=Release
ARG RUNTIME=linux-x64
RUN dotnet restore src/AwesomeCopilot.McpServer/AwesomeCopilot.McpServer.csproj
# Publish: if PUBLISH_AOT=true, enable Native AOT publish flags
RUN dotnet publish src/AwesomeCopilot.McpServer -c $CONFIG -r $RUNTIME -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link -p:PublishSingleFile=true -o /app/publish;
FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-noble-chiseled AS release
WORKDIR /app
COPY --from=build /app/publish/ .
EXPOSE 8080
ENTRYPOINT ["/app/AwesomeCopilot.McpServer"]