Skip to content

Commit 026250b

Browse files
author
Gary Li
committed
Update dockerfile example to reflect best practices
1 parent 4789791 commit 026250b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/mcp-tools.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,17 @@ Then configure your MCP client to connect to `http://localhost:8080/`.
3939
You can self-host the Bicep MCP Server as a container using the published NuGet tool package. Create a `Dockerfile` with the following contents:
4040

4141
```dockerfile
42-
FROM mcr.microsoft.com/dotnet/sdk:10.0
42+
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS install
4343

4444
RUN dotnet tool install --global Azure.Bicep.McpServer
4545

46-
ENV PATH="$PATH:/root/.dotnet/tools"
46+
FROM mcr.microsoft.com/dotnet/aspnet:10.0
47+
48+
COPY --from=install /root/.dotnet/tools /opt/tools
49+
50+
ENV PATH="$PATH:/opt/tools"
51+
52+
USER $APP_UID
4753

4854
EXPOSE 8080
4955

0 commit comments

Comments
 (0)