Spaces:
Sleeping
Sleeping
Download Dockerfile from mgbam/MCP_Research: direct link, hf CLI and curl.
- Browser
- Download file 832 Bytes
-
https://huggingface.co/spaces/mgbam/MCP_Research/resolve/03eb57041fd62028c4b7b27148988c8a58edd564/Dockerfile
- Command line
-
hf download hf://spaces/mgbam/MCP_Research@03eb57041fd62028c4b7b27148988c8a58edd564/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mgbam/MCP_Research/resolve/03eb57041fd62028c4b7b27148988c8a58edd564/Dockerfile
832 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.10-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Create and set working directory | |
| WORKDIR /app | |
| # Install system dependencies (if any required for MCP endpoints) | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install Python dependencies | |
| COPY requirements.txt ./ | |
| RUN pip install --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # Copy application source | |
| COPY . . | |
| # Expose port for Streamlit (default 8501) and any API endpoints | |
| EXPOSE 8501 | |
| # Default command to run the Streamlit app | |
| CMD ["streamlit", "run", "app.py", "--server.port", "8501", "--server.address", "0.0.0.0"] |