Spaces:
Sleeping
Sleeping
Download Dockerfile from renderfy/DiagStudio-AI: direct link, hf CLI and curl.
- Browser
- Download file 886 Bytes
-
https://huggingface.co/spaces/renderfy/DiagStudio-AI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/renderfy/DiagStudio-AI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/renderfy/DiagStudio-AI/resolve/main/Dockerfile
886 Bytes
| # Streamlit frontend (TR/EN) — containerized | |
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| STREAMLIT_SERVER_HEADLESS=true \ | |
| STREAMLIT_BROWSER_GATHER_USAGE_STATS=false \ | |
| PORT=7860 | |
| # (Optional) useful utils | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ca-certificates curl && \ | |
| rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Install deps first (better layer caching) | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r /app/requirements.txt | |
| # Copy app last | |
| COPY app.py /app/app.py | |
| # If you mount envs in HF Space, they’ll be visible at runtime (no bake-in here) | |
| EXPOSE 7860 | |
| # Streamlit CLI with explicit address/port (headless) :contentReference[oaicite:3]{index=3} | |
| CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"] | |