mirror of
https://github.com/microsoft/mcp.git
synced 2026-11-04 12:01:31 +00:00
* Move to .NET 10 preview 7 to preview for .NET tool * Revert unnecessary change
23 lines
595 B
Docker
23 lines
595 B
Docker
# Build the runtime image
|
|
FROM mcr.microsoft.com/dotnet/aspnet:9.0.8-bookworm-slim AS runtime
|
|
|
|
# Add build argument for publish directory
|
|
ARG PUBLISH_DIR
|
|
|
|
# Error out if PUBLISH_DIR is not set
|
|
RUN if [ -z "$PUBLISH_DIR" ]; then \
|
|
echo "ERROR: PUBLISH_DIR build argument is required" && exit 1; \
|
|
fi
|
|
|
|
# Copy the contents of the publish directory
|
|
COPY ${PUBLISH_DIR} .
|
|
|
|
# List the contents of the current directory
|
|
RUN ls -la
|
|
|
|
RUN if [ ! -f "azmcp.dll" ]; then \
|
|
echo "ERROR: azmcp 'azmcp.dll' does not exist" && exit 1; \
|
|
fi
|
|
|
|
ENTRYPOINT ["dotnet", "azmcp.dll", "server", "start"]
|