Spaces:
Sleeping
Sleeping
Download Dockerfile from 701w/speech_defects: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/701w/speech_defects/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/701w/speech_defects/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/701w/speech_defects/resolve/main/Dockerfile
492 Bytes
| FROM python:3.11 | |
| WORKDIR /app | |
| COPY . /app | |
| RUN apt-get update && apt-get install -y ffmpeg && apt-get clean | |
| RUN groupadd -r user && useradd -r -g user -m user | |
| RUN mkdir -p /tmp/whisper_cache && chmod 777 /tmp/whisper_cache | |
| RUN chown -R user:user /app | |
| ENV NUMBA_CACHE_DIR /tmp | |
| RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt | |
| USER user | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] | |