# Use official Python image FROM python:3.11-slim # Set environment variables ENV PYTHONUNBUFFERED=1 # Set work directory WORKDIR /app # Copy project files COPY bot.py requirements.txt ./ # Install dependencies RUN pip install --no-cache-dir --upgrade pip \ && pip install --no-cache-dir -r requirements.txt # Expose port (Hugging Face expects 7860 for Gradio/Streamlit, not needed for bot but safe) EXPOSE 7860 # Run the bot CMD ["python", "bot.py"]