File size: 542 Bytes
cc47956
0583f91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5c6f13f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.11-slim

WORKDIR /app

COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# Create a writable directory for the app to store data (if needed)
# Hugging Face Spaces allows writing to /app, but persistent storage requires /data usually.
# For now, we assume standard ephemeral storage is fine or the app handles it.
# We need to make sure the user has permissions.
RUN chmod -R 777 /app

EXPOSE 7860

CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "300", "--workers", "1", "app_copy:app"]