Spaces:
Runtime error
Runtime error
File size: 520 Bytes
812d419 90f88b8 812d419 2f59392 812d419 6715018 812d419 6715018 812d419 2f59392 6715018 812d419 6715018 812d419 6715018 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # 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"]
|