Download Dockerfile from mgbam/MCP_Res: direct link, hf CLI and curl.
- Browser
- Download file 641 Bytes
-
https://huggingface.co/spaces/mgbam/MCP_Res/resolve/02647969e83495098a7d1df2a981241876e94d27/Dockerfile
- Command line
-
hf download hf://spaces/mgbam/MCP_Res@02647969e83495098a7d1df2a981241876e94d27/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mgbam/MCP_Res/resolve/02647969e83495098a7d1df2a981241876e94d27/Dockerfile
641 Bytes
| FROM python:3.10-slim | |
| WORKDIR /code | |
| # Install system deps | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends build-essential gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| # First install NumPy alone to get the right ABI | |
| RUN pip install --no-cache-dir numpy==1.24.4 | |
| # Now install everything else | |
| RUN pip install --upgrade pip setuptools wheel \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| # Finally download the spaCy model | |
| RUN python -m spacy download en_core_web_sm | |
| COPY . . | |
| CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"] | |