Download Dockerfile from jdewitte/mcp: direct link, hf CLI and curl.
- Browser
- Download file 533 Bytes
-
https://huggingface.co/spaces/jdewitte/mcp/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/jdewitte/mcp/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jdewitte/mcp/resolve/main/Dockerfile
533 Bytes
| FROM python:3.10-slim | |
| # Install system dependencies | |
| RUN apt-get update \ | |
| && apt-get install -y git curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set workdir | |
| WORKDIR /app | |
| # Install Python dependencies | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy MCP server code | |
| COPY . /app/ | |
| # Make run_server.py executable | |
| RUN chmod +x /app/run_server.py | |
| # Expose port for MCP server | |
| EXPOSE 8081 | |
| # Start the MCP server | |
| CMD ["python", "run_server.py", "--host", "0.0.0.0", "--port", "8081"] | |