Download Dockerfile from mgbam/MCP_Res: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/spaces/mgbam/MCP_Res/resolve/1f7d1c0d89b17a6183262c4cefdae7ac182f97fd/Dockerfile
- Command line
-
hf download hf://spaces/mgbam/MCP_Res@1f7d1c0d89b17a6183262c4cefdae7ac182f97fd/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mgbam/MCP_Res/resolve/1f7d1c0d89b17a6183262c4cefdae7ac182f97fd/Dockerfile
1.08 kB
| # ββ Dockerfile βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| FROM python:3.10-slim | |
| # Set environment | |
| ENV PYTHONUNBUFFERED=1 \ | |
| STREAMLIT_DATA_DIR=/tmp/.streamlit \ | |
| XDG_STATE_HOME=/tmp \ | |
| STREAMLIT_BROWSER_GATHERUSAGESTATS=false | |
| # OS deps | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential curl && rm -rf /var/lib/apt/lists/* | |
| # Pin numpy to avoid C-extension mismatches | |
| RUN pip install --no-cache-dir numpy==1.23.5 | |
| # Install core Python libs + ML/embeddings | |
| RUN pip install --no-cache-dir \ | |
| spacy==3.5.2 transformers huggingface-hub scikit-learn httpx pandas plotly \ | |
| fpdf streamlit streamlit-agraph networkx xmltodict feedparser pydantic openai \ | |
| google-generative-ai | |
| # Download spaCy model | |
| RUN python -m spacy download en_core_web_sm | |
| # Set workdir | |
| WORKDIR /app | |
| COPY . /app | |
| EXPOSE 8501 | |
| # Entrypoint | |
| ENTRYPOINT ["streamlit","run","app.py","--server.address=0.0.0.0","--server.port=8501"] |