Download Dockerfile from QBANK/OFTQUEST: direct link, hf CLI and curl.
- Browser
- Download file 498 Bytes
-
https://huggingface.co/spaces/QBANK/OFTQUEST/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/QBANK/OFTQUEST/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/QBANK/OFTQUEST/resolve/main/Dockerfile
498 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Install dependencies first (better layer caching) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Bust cache for static files (change this value to force rebuild) | |
| ARG CACHE_BUST=20260406v8 | |
| # Copy application code | |
| COPY . . | |
| # DB will be built at runtime (entrypoint) so secrets are available | |
| # HF Spaces runs on port 7860 | |
| EXPOSE 7860 | |
| COPY entrypoint.sh /entrypoint.sh | |
| RUN chmod +x /entrypoint.sh | |
| ENTRYPOINT ["/entrypoint.sh"] | |