File size: 574 Bytes
1e94574
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# HF-friendly web UI + proxy for the Android build-runner
FROM python:3.11-slim

ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1 \
    PORT=8080

WORKDIR /app

# Install runtime deps
RUN apt-get update && apt-get install -y --no-install-recommends \
    ca-certificates \
    && rm -rf /var/lib/apt/lists/*

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

# Copy app and static UI
COPY app.py .
COPY static ./static

EXPOSE ${PORT}

# Use gunicorn to serve Flask app (4 workers)
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8080", "app:app"]