Skip to content

Commit a71b9be

Browse files
authored
Fix dockerfile transport config & cut a new release candidate (#42)
* Removed the default command from Dockerfile for the transport to be correctly set via env vars * Update Dockerfile to streamline dependency installation and modify entry point to use binary - Changed the pip installation command to remove the editable flag for better compatibility. - Commented out the source copy command to prevent unnecessary file copying. - Updated the entry point to use the installed console script instead of directly invoking Python, enhancing the application's execution method. * Delete commented out code * Create a new RC1 for version 0.4.0
1 parent cfa21a0 commit a71b9be

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ COPY src/ ./src/
1313

1414
# Create virtual environment and install dependencies
1515
RUN uv venv /opt/venv && \
16-
uv pip install --python /opt/venv/bin/python -e .
16+
uv pip install --python /opt/venv/bin/python .
1717

1818
# Runtime stage - use Python image with same version as builder
1919
FROM python:3.10-slim-bookworm AS runtime
@@ -36,7 +36,6 @@ WORKDIR /app
3636

3737
# Copy virtual environment and application from builder
3838
COPY --from=builder /opt/venv /opt/venv
39-
COPY --from=builder /build/src ./src
4039

4140
# Set up Python environment
4241
ENV PATH="/opt/venv/bin:$PATH" \
@@ -49,14 +48,13 @@ RUN chown -R mcpuser:mcpuser /app /opt/venv
4948
# Switch to non-root user
5049
USER mcpuser
5150

52-
# Environment variables with defaults
51+
# Environment variables with stdio defaults (override for network mode)
5352
ENV CB_MCP_READ_ONLY_QUERY_MODE="true" \
5453
CB_MCP_TRANSPORT="stdio" \
5554
CB_MCP_PORT="8000"
5655

57-
# Expose default port for SSE mode
56+
# Expose default port for HTTP/SSE mode
5857
EXPOSE 8000
5958

60-
# Use python directly instead of uv run to avoid runtime dependency resolution
61-
ENTRYPOINT ["python", "src/mcp_server.py"]
62-
CMD ["--transport", "stdio"]
59+
# Use the installed console script
60+
ENTRYPOINT ["couchbase-mcp-server"]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "couchbase-mcp-server"
3-
version = "0.4.0"
3+
version = "0.4.0-rc1"
44
description = "Couchbase MCP Server - The Developer Data Platform for Critical Applications in Our AI World"
55
readme = "README.md"
66
requires-python = ">=3.10"

0 commit comments

Comments
 (0)