Meshyboi/DL-GenAI-Project
0
1# Use Python 3.13 full image (compatible with Hugging Face Spaces)2FROM python:3.133 4# Set working directory5WORKDIR /app6 7# Install system dependencies8RUN apt-get update && apt-get install -y \9 build-essential \10 curl \11 && rm -rf /var/lib/apt/lists/*12 13# Copy requirements file14COPY requirements.txt ./15 16# Install Python dependencies from requirements.txt17RUN pip install --no-cache-dir --upgrade pip && \18 pip install --no-cache-dir -r requirements.txt19 20# Copy application files21COPY . .22 23# Expose the port (Hugging Face Spaces uses 7860)24EXPOSE 786025 26# Health check27HEALTHCHECK CMD curl --fail http://localhost:7860/health || exit 128 29# Run FastAPI application30CMD uvicorn app:app --host 0.0.0.0 --port 786031 32 