Update Dockerfile

This commit is contained in:
2025-05-07 18:53:44 +00:00
parent b7bedceb92
commit 57dd1c23c8

View File

@@ -13,8 +13,11 @@ RUN apt-get update && \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& pip install --no-cache-dir uv && pip install --no-cache-dir uv
# Copy ALL project files (including the mcp module) # Copy project files
COPY . . COPY pyproject.toml poetry.lock ./
COPY splunk_mcp.py ./
COPY README.md ./
COPY .env.example ./
# Install dependencies using uv # Install dependencies using uv
RUN uv pip install --system poetry && \ RUN uv pip install --system poetry && \
@@ -43,4 +46,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:${FASTMCP_PORT}/health || exit 1 CMD curl -f http://localhost:${FASTMCP_PORT}/health || exit 1
# Default to SSE mode # Default to SSE mode
CMD ["python", "splunk_mcp.py", "sse"] CMD ["python", "splunk_mcp.py", "sse"]