Download Dockerfile from mgbam/MCP_Res: direct link, hf CLI and curl.
- Browser
- Download file 712 Bytes
-
https://huggingface.co/spaces/mgbam/MCP_Res/resolve/dad49dacce7c2b19c108cc0148fd22944054bf5f/Dockerfile
- Command line
-
hf download hf://spaces/mgbam/MCP_Res@dad49dacce7c2b19c108cc0148fd22944054bf5f/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mgbam/MCP_Res/resolve/dad49dacce7c2b19c108cc0148fd22944054bf5f/Dockerfile
712 Bytes
| FROM python:3.10-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PORT=7860 \ | |
| STREAMLIT_SERVER_PORT=7860 \ | |
| STREAMLIT_SERVER_HEADLESS=true \ | |
| STREAMLIT_SERVER_ENABLECORS=false \ | |
| STREAMLIT_SERVER_ENABLEWEBRTC=false | |
| WORKDIR /code | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip setuptools wheel && \ | |
| pip install -r requirements.txt | |
| # **Install spaCy small English model during build** | |
| RUN python -m spacy download en_core_web_sm | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", \ | |
| "--server.address=0.0.0.0", "--server.port=7860"] | |