Spaces:
Configuration error
Configuration error
Download Dockerfile from raghuvardhan/tinyllm: direct link, hf CLI and curl.
- Browser
- Download file 608 Bytes
-
https://huggingface.co/spaces/raghuvardhan/tinyllm/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/raghuvardhan/tinyllm/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/raghuvardhan/tinyllm/resolve/main/Dockerfile
608 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PIP_NO_CACHE_DIR=1 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && \ | |
| pip install -r requirements.txt | |
| COPY . . | |
| EXPOSE 8501 | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=3 \ | |
| CMD curl --fail http://localhost:8501/_stcore/health || exit 1 | |
| CMD ["streamlit", "run", "client.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.headless=true"] |