Spaces:
Runtime error
Runtime error
Download Dockerfile from shaamil101/RAG: direct link, hf CLI and curl.
- Browser
- Download file 498 Bytes
-
https://huggingface.co/spaces/shaamil101/RAG/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/shaamil101/RAG/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/shaamil101/RAG/resolve/main/Dockerfile
498 Bytes
| # Use a base image with Python | |
| FROM python:3.10-slim | |
| # Copy your code | |
| WORKDIR /app | |
| COPY . /app | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache | |
| ENV HF_HOME=/app/.cache | |
| ENV HF_DATASETS_CACHE=/app/.cache/datasets | |
| ENV TRANSFORMERS_CACHE=/app/.cache/transformers | |
| # Expose the port your FastAPI app runs on (e.g. 7860) | |
| EXPOSE 7860 | |
| # Run your FastAPI app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |