FROM mcr.microsoft.com/playwright/python:v1.59.0-jammy WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy worker and setup COPY worker.py . COPY hf_runner.py . # Environment Variables ENV REDIS_HOST=18.188.157.122 ENV REDIS_PORT=6379 ENV API_URL=http://18.188.157.122:8000 # Hugging Face needs port 7860 EXPOSE 7860 CMD ["python", "hf_runner.py"]