AndroidSDK-on-CPU / Dockerfile
ChBysk's picture
Create Dockerfile
1e94574 verified
Raw History Blame Contribute Delete
574 Bytes
# 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"]