File size: 523 Bytes
b43f6b4
cf8c486
8f20b9b
 
b43f6b4
8f20b9b
 
 
7a16e94
 
 
cf8c486
b43f6b4
7a16e94
cf8c486
 
 
 
 
 
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.42.0-jammy

WORKDIR /app

# Install Python requirements
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt

# The Microsoft Playwright image already creates a user with UID 1000 (usually 'pwuser')
# Hugging Face Spaces requires running as UID 1000, so we just switch to it directly.
USER 1000

# Copy application files with correct permissions
COPY --chown=1000 . /app/

# Expose Gradio port
EXPOSE 7860

# Run the Gradio App
CMD ["python", "app.py"]