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=54.244.160.21 ENV REDIS_PORT=6379 ENV API_URL=http://54.244.160.21:8000 # Hugging Face needs port 7860 EXPOSE 7860 CMD ["python", "hf_runner.py"]