Ping Long
fix: move audio samples to top-level dir to avoid LFS pointer issue in Docker build
7855f07 Download Dockerfile from SiliconLanguage/open-asr-model-explorer: direct link, hf CLI and curl.
- Browser
- Download file 871 Bytes
-
https://huggingface.co/spaces/SiliconLanguage/open-asr-model-explorer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SiliconLanguage/open-asr-model-explorer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SiliconLanguage/open-asr-model-explorer/resolve/main/Dockerfile
871 Bytes
| FROM nvidia/cuda:12.1.0-base-ubuntu22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| python3 \ | |
| python3-pip \ | |
| python3-venv \ | |
| ffmpeg \ | |
| git \ | |
| libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt /app/requirements.txt | |
| RUN python3 -m pip install --no-cache-dir --upgrade pip \ | |
| && python3 -m pip install --no-cache-dir -r /app/requirements.txt \ | |
| && python3 -m pip install --no-cache-dir --no-deps vllm==0.19.0 | |
| COPY backend/app.py /app/app.py | |
| COPY samples/ /app/samples/ | |
| ENV HF_HOME=/data/.huggingface | |
| ENV TRANSFORMERS_CACHE=/data/.huggingface | |
| ENV VLLM_NO_USAGE_STATS=1 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["python3", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"] |