Buckets:
| FROM nvidia/cuda:12.2.2-runtime-ubuntu22.04 | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PORT=7860 | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| python3.10 \ | |
| python3-pip \ | |
| curl \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements first for better caching | |
| COPY requirements-gpu.txt . | |
| RUN pip install --no-cache-dir -r requirements-gpu.txt | |
| # Copy application code | |
| COPY . . | |
| # Create non-root user | |
| RUN useradd --create-home --shell /bin/bash app \ | |
| && chown -R app:app /app | |
| USER app | |
| # Expose port | |
| EXPOSE 7860 | |
| # Health check | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ | |
| CMD curl -f http://localhost:${PORT}/ || exit 1 | |
| # Run the application | |
| CMD ["python", "spaces_deployment/app.py"] |
Xet Storage Details
- Size:
- 852 Bytes
- Xet hash:
- c4cd5dcb47d385c0e368dde5e984518c84a93ae88d445ac6dff0804e293060b8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.