Spaces:
Build error
Build error
Download Dockerfile from d221/Qdrant_Backend: direct link, hf CLI and curl.
- Browser
- Download file 751 Bytes
-
https://huggingface.co/spaces/d221/Qdrant_Backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/d221/Qdrant_Backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/d221/Qdrant_Backend/resolve/main/Dockerfile
751 Bytes
| FROM python:3.12 | |
| WORKDIR /app | |
| # Create user with proper PATH configuration | |
| RUN useradd -m appuser && \ | |
| echo 'export PATH="$HOME/.local/bin:$PATH"' >> /home/appuser/.bashrc | |
| # System dependencies | |
| RUN apt-get update && apt-get install -y git | |
| # Set environment variables | |
| #ENV PATH="/home/appuser/.local/bin:${PATH}" \ | |
| # PYTHONPATH="/app:${PYTHONPATH}" \ | |
| # PIP_NO_WARN_SCRIPT_LOCATION=0) | |
| # Switch to non-root user | |
| USER appuser | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --user --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY --chown=appuser:appuser . . | |
| # Verify uvicorn location | |
| RUN which uvicorn && echo $PATH | |
| # Launch command | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |