Skip to content

Commit d41eba5

Browse files
committed
feat: enhance Docker setup by adding container readiness verification and updating dependencies
1 parent 5296efd commit d41eba5

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.github/workflows/test-mcp-server.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ jobs:
3939
# Show running containers
4040
docker ps
4141
42+
- name: Verify container readiness
43+
run: |
44+
echo "Checking Docker container status..."
45+
docker ps
46+
docker logs $(docker ps -q --filter name=api)
47+
echo "Waiting 30 more seconds for services to stabilize..."
48+
sleep 30
49+
4250
- name: Install cmcp client
4351
run: |
4452
pip install cmcp

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ WORKDIR /app
1414

1515
# Copy requirements and install dependencies
1616
COPY requirements.txt .
17-
RUN pip install --no-cache-dir -r requirements.txt || echo "Some packages not found, continuing..."
17+
# Remove the "|| echo" part to fail if packages aren't installed
18+
RUN pip install --no-cache-dir -r requirements.txt
1819

1920
# Install MCP packages explicitly
20-
RUN pip install mcp-python mcp-proxy
21+
RUN pip install mcp-python mcp-proxy fastapi uvicorn
2122

2223
# Copy application code
2324
COPY . .
@@ -28,5 +29,5 @@ RUN mkdir -p output
2829
# Expose port for FastAPI
2930
EXPOSE 8000
3031

31-
# Add entry point for MCP server
32-
CMD ["python", "-m", "app.mcp_server"]
32+
# Add entry point for FastAPI
33+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ services:
1515
- QDRANT_PORT=6333
1616
depends_on:
1717
- qdrant
18-
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
1918

2019
mcp-server:
2120
build: .

requirements.txt

-12 KB
Binary file not shown.

0 commit comments

Comments
 (0)