FROM python:3.10-slim WORKDIR /app COPY . . # Make start.sh executable (HF needs this) RUN chmod +x start.sh # Install dependencies RUN pip install --no-cache-dir -r requirements.txt EXPOSE 7860 # Start the server through start.sh (recommended for HF Spaces) CMD ["bash", "start.sh"]