# Base image with Python FROM python:3.10-slim # Set working directory inside container WORKDIR /app # Copy requirements first (for caching) COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy all project files (API + model) COPY . . # Expose port for Flask EXPOSE 7860 # Run the Flask app CMD ["python", "app.py"]