Spaces:
Sleeping
Sleeping
Download Dockerfile.api from akif07/production-rag-api: direct link, hf CLI and curl.
- Browser
- Download file 412 Bytes
-
https://huggingface.co/spaces/akif07/production-rag-api/resolve/main/Dockerfile.api
- Command line
-
hf download hf://spaces/akif07/production-rag-api/Dockerfile.api
-
curl -L -o Dockerfile.api https://huggingface.co/spaces/akif07/production-rag-api/resolve/main/Dockerfile.api
412 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements_api.txt . | |
| RUN pip install --no-cache-dir -r requirements_api.txt | |
| COPY . . | |
| ENV PYTHONUNBUFFERED=1 \ | |
| API_HOST=0.0.0.0 \ | |
| API_PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "7860"] | |