FROM python:3.11-slim WORKDIR /app # Copy requirements file COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy application files COPY app.py . COPY prompt.md . COPY chainlit.md . # Copy Chainlit configuration (with customizations) COPY .chainlit/ .chainlit/ # Copy public assets (logo, etc.) COPY public/ public/ # Expose port 7860 (required for Hugging Face Spaces) EXPOSE 7860 # Run Chainlit application CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]