File size: 558 Bytes
3ca9355
 
4ceffcb
3ca9355
4ceffcb
 
 
3ca9355
 
 
ecdbbb5
3ca9355
 
 
 
 
f5e1e2e
4ceffcb
1341ccf
3ca9355
1341ccf
a8aa313
4ceffcb
1341ccf
c679c1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Hugging Face Spaces Configuration
# Mi Pesca RD - Flask PWA

FROM python:3.11-slim

WORKDIR /app

# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application files
COPY app.py .
COPY models.py .
COPY static/ ./static/

# Environment variables
ENV PORT=7860
ENV PYTHONUNBUFFERED=1

# Expose port
EXPOSE 7860

# Run with verbose logging
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "--access-logfile", "-", "--error-logfile", "-", "app:app"]