Spaces:
Paused
Paused
Download Dockerfile from ChBysk/AndroidSDK-on-CPU: direct link, hf CLI and curl.
- Browser
- Download file 574 Bytes
-
https://huggingface.co/spaces/ChBysk/AndroidSDK-on-CPU/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ChBysk/AndroidSDK-on-CPU/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ChBysk/AndroidSDK-on-CPU/resolve/main/Dockerfile
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"] |