Spaces:
Configuration error
Configuration error
Download Dockerfile from mutoni1923/AgroChat: direct link, hf CLI and curl.
- Browser
- Download file 710 Bytes
-
https://huggingface.co/spaces/mutoni1923/AgroChat/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mutoni1923/AgroChat/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mutoni1923/AgroChat/resolve/main/Dockerfile
710 Bytes
| FROM python:3.11-slim-bookworm | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| TRANSFORMERS_CACHE=/tmp/hf-cache \ | |
| SENTENCE_TRANSFORMERS_HOME=/tmp/st-cache \ | |
| PORT=7860 | |
| WORKDIR /app | |
| ## RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ##RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \ | |
| ##ca-certificates \ | |
| ## && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", \ | |
| "--workers", "1", "--threads", "2", \ | |
| "--timeout", "300", "app:app"] |