Spaces:
Sleeping
Sleeping
fix 1
Browse files- Dockerfile +5 -5
- README.md +0 -1
Dockerfile
CHANGED
|
@@ -10,10 +10,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 10 |
build-essential \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
-
# Copy
|
| 14 |
-
COPY . /app
|
| 15 |
-
|
| 16 |
-
# Copy MCP service requirements
|
| 17 |
COPY mcp_output/requirements.txt /app/requirements.txt
|
| 18 |
|
| 19 |
# Install Python dependencies with explicit version check
|
|
@@ -21,9 +18,12 @@ RUN pip install --no-cache-dir -r /app/requirements.txt && \
|
|
| 21 |
pip list | grep fastmcp && \
|
| 22 |
python -c "import fastmcp; print(f'FastMCP version installed: {fastmcp.__version__}')"
|
| 23 |
|
| 24 |
-
# Note: FastAPI and Uvicorn are already included as dependencies of fastmcp
|
| 25 |
# DO NOT reinstall them separately as it may upgrade fastmcp to a newer version
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
# Create output directories with write permissions
|
| 28 |
RUN mkdir -p /app/mcp_output/mcp_logs \
|
| 29 |
/app/mcp_output/output \
|
|
|
|
| 10 |
build-essential \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
+
# Copy MCP service requirements first (for better Docker caching)
|
|
|
|
|
|
|
|
|
|
| 14 |
COPY mcp_output/requirements.txt /app/requirements.txt
|
| 15 |
|
| 16 |
# Install Python dependencies with explicit version check
|
|
|
|
| 18 |
pip list | grep fastmcp && \
|
| 19 |
python -c "import fastmcp; print(f'FastMCP version installed: {fastmcp.__version__}')"
|
| 20 |
|
| 21 |
+
# Note: FastAPI and Uvicorn are already included as dependencies of fastmcp
|
| 22 |
# DO NOT reinstall them separately as it may upgrade fastmcp to a newer version
|
| 23 |
|
| 24 |
+
# Copy the entire project after installing dependencies
|
| 25 |
+
COPY . /app
|
| 26 |
+
|
| 27 |
# Create output directories with write permissions
|
| 28 |
RUN mkdir -p /app/mcp_output/mcp_logs \
|
| 29 |
/app/mcp_output/output \
|
README.md
CHANGED
|
@@ -4,7 +4,6 @@ emoji: 📉
|
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: blue
|
| 6 |
sdk: docker
|
| 7 |
-
app_port: 7860
|
| 8 |
pinned: false
|
| 9 |
---
|
| 10 |
|
|
|
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: blue
|
| 6 |
sdk: docker
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|