Update MCP Dockerfile to support new module structure

Create documents directory and ensure all new modules are properly
included in the container build.
This commit is contained in:
Rasmus Widing 2025-08-18 20:42:42 +03:00
parent 52f54699e9
commit d01e27adc3

View File

@ -8,10 +8,10 @@ COPY requirements.mcp.txt .
RUN pip install --no-cache-dir -r requirements.mcp.txt
# Create minimal directory structure
RUN mkdir -p src/mcp/modules src/server/services src/server/config
RUN mkdir -p src/mcp_server/features/projects src/mcp_server/features/tasks src/mcp_server/features/documents src/server/services src/server/config
# Copy only MCP-specific files (lightweight protocol wrapper)
COPY src/mcp/ src/mcp/
COPY src/mcp_server/ src/mcp_server/
COPY src/__init__.py src/
# Copy only the minimal server files MCP needs for HTTP communication
@ -34,4 +34,4 @@ ENV ARCHON_MCP_PORT=${ARCHON_MCP_PORT}
EXPOSE ${ARCHON_MCP_PORT}
# Run the MCP server
CMD ["python", "-m", "src.mcp.mcp_server"]
CMD ["python", "-m", "src.mcp_server.mcp_server"]