| FROM ghcr.io/ggml-org/whisper.cpp:main |
|
|
| |
| WORKDIR /app |
|
|
| |
| RUN mkdir -p /app/.cache && chmod 777 /app/.cache |
|
|
| |
| ENV XDG_CACHE_HOME=/app/.cache |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| python3-pip \ |
| git \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN nproc |
|
|
| |
| COPY requirements.txt . |
|
|
| |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| |
| |
|
|
| |
| RUN curl -L https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.bin -o /app/models/ggml-tiny.bin && \ |
| curl -L https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.bin -o /app/models/ggml-base.bin && \ |
| curl -L https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.bin -o /app/models/ggml-small.bin && \ |
| curl -L https://huggingface.co/ggml-org/whisper-vad/resolve/main/ggml-silero-v5.1.2.bin -o /app/models/ggml-silero-v5.1.2.bin |
|
|
| |
| COPY . . |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| RUN chmod +x startup.sh |
|
|
| |
| RUN free -h && df -h |
|
|
| RUN cat /etc/os-release |
|
|
| |
| CMD ["./startup.sh"] |