Spaces:
Sleeping
Sleeping
Download Dockerfile from prthm11/AudioTransDiar: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/spaces/prthm11/AudioTransDiar/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/prthm11/AudioTransDiar/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/prthm11/AudioTransDiar/resolve/main/Dockerfile
1.01 kB
| # FROM python:3.12.2-slim | |
| # WORKDIR /app | |
| # COPY requirements.txt . | |
| # COPY . . | |
| # RUN pip install --no-cache-dir -r requirements.txt | |
| # EXPOSE 7860 | |
| # CMD ["python", "merged.py"] | |
| FROM python:3.12-slim | |
| # Install system packages needed to compile audio/C-extensions and run audio tooling | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| gcc \ | |
| pkg-config \ | |
| git \ | |
| ca-certificates \ | |
| ffmpeg \ | |
| libsndfile1 \ | |
| libsndfile1-dev \ | |
| portaudio19-dev \ | |
| libportaudio2 \ | |
| libportaudiocpp0 \ | |
| libasound2-dev \ | |
| libavcodec-dev \ | |
| libavformat-dev \ | |
| libavdevice-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Copy requirements | |
| COPY requirements.txt . | |
| # Upgrade packaging tools first | |
| RUN pip install --no-cache-dir --upgrade pip setuptools wheel | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN mkdir /app/uploads /app/output_transcript_diarization | |
| # Copy app code | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "merged.py"] | |