forked from IvanMurzak/Unity-MCP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 966 Bytes
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# See https://docs.microsoft.com/aspnet/core/host-and-deploy/docker/building-net-docker-images
# for more information about using .NET with Docker.
# Build stage
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /src
# Copy main project file
COPY ["com.IvanMurzak.Unity.MCP.Server.csproj", "."]
# Restore dependencies
RUN dotnet restore "com.IvanMurzak.Unity.MCP.Server.csproj"
# Copy the rest of the source code
COPY . .
# Publish
RUN dotnet publish "com.IvanMurzak.Unity.MCP.Server.csproj" -c Release -o /app/publish /p:UseAppHost=false
# Runtime stage
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS final
WORKDIR /app
COPY --from=build /app/publish .
# MCP server metadata
LABEL io.modelcontextprotocol.server.name="io.github.IvanMurzak/Unity-MCP"
# Expose the default plugin port and the HTTP client port so external scanners
# (like Smithery) and platform port mappings can reach the server.
EXPOSE 8080
ENTRYPOINT ["dotnet", "unity-mcp-server.dll"]