# Use Python base image (with CUDA if GPU needed) FROM python:3.11-slim # Install system dependencies RUN apt-get update && apt-get install -y \ build-essential \ cmake \ wget \ git \ && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy your model and code into the container COPY . /app # Install Python dependencies RUN pip install --no-cache-dir --upgrade pip RUN pip install --no-cache-dir -r requirements.txt # Expose port for HF Space EXPOSE 7860 # Command to run your app CMD ["python", "app.py"]