Spaces:
Runtime error
Runtime error
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install | |
| COPY mcp/requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN pip install --no-cache-dir uvicorn starlette | |
| # Copy application code | |
| COPY . . | |
| # Create data directories | |
| RUN mkdir -p /data/upload /data/tmp_outputs | |
| # Set environment variables | |
| ENV UMAP_OUTPUT_DIR=/data/tmp_outputs | |
| ENV UMAP_INPUT_DIR=/data/upload | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["python", "app.py"] | |