File size: 417 Bytes
d2ecce1
3170f76
 
 
 
 
 
 
 
 
 
 
00ba455
3170f76
00ba455
3170f76
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"]