Spaces:
Sleeping
Sleeping
| # Use Python 3.12 slim image | |
| FROM python:3.12-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy code | |
| COPY . . | |
| # Copy requirements (if you have them) | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose port 7860 (HF Spaces default port) | |
| EXPOSE 7860 | |
| # Set environment variable for TMDB API key (optional, safer than hardcoding) | |
| ENV TMDB_API_KEY=4861f7d1c63c8f09d3fc10c2c17bd675 | |
| # Command to run FastAPI | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |