Spaces:
Sleeping
Sleeping
Download Dockerfile from Kennethdot/kasanoma_ASR: direct link, hf CLI and curl.
- Browser
- Download file 965 Bytes
-
https://huggingface.co/spaces/Kennethdot/kasanoma_ASR/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Kennethdot/kasanoma_ASR/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Kennethdot/kasanoma_ASR/resolve/main/Dockerfile
965 Bytes
| FROM python:3.11-slim AS builder | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential cmake git ffmpeg libcurl4-openssl-dev && \ | |
| rm -rf /var/lib/apt/lists/* | |
| WORKDIR /build | |
| RUN git clone --depth 1 https://github.com/ggml-org/whisper.cpp . | |
| RUN cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF && \ | |
| cmake --build build -j --config Release --target whisper-server | |
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ffmpeg libsndfile1 libcurl4 curl && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY --from=builder /build/build/bin/whisper-server /usr/local/bin/whisper-server | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY main.py . | |
| COPY start.sh . | |
| RUN chmod +x start.sh | |
| COPY assets/ ./assets/ | |
| COPY static/ ./static/ | |
| RUN mkdir -p /app/dataset/audio /app/models && chmod -R 777 /app/dataset /app/models | |
| EXPOSE 7860 | |
| CMD ["./start.sh"] |