# Use the official Playwright Python image (Jammy is stable) FROM mcr.microsoft.com/playwright/python:v1.44.0-jammy # Set work directory WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir flask # Added for health check # Install Playwright browsers (Chromium) RUN playwright install chromium # Copy project files COPY . . # Expose the port Hugging Face looks for EXPOSE 7860 # Run the application CMD ["python", "bot.py"]