Spaces:
Sleeping
Sleeping
| # ============================================================= | |
| # Dockerfile for ModelDiet - Gemini Proxy with SQLite Logging | |
| # ============================================================= | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy dependency list | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all project files | |
| COPY . . | |
| # Expose FastAPI port | |
| EXPOSE 7860 | |
| # Run FastAPI via Uvicorn | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |