Kar 2025-06-15 21:54:42 +05:30
parent d5e7358096
commit 2af656ada4
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
FROM ubuntu:22.04 FROM ubuntu:22.04
# Install dependencies # Install system dependencies
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
python3 \ python3 \
python3-pip \ python3-pip \
@ -15,12 +15,12 @@ RUN apt-get update && apt-get install -y \
# Set working directory # Set working directory
WORKDIR /app WORKDIR /app
# Clone whisper.cpp (shallow clone to save space) # Clone whisper.cpp (shallow clone)
RUN git clone --depth 1 https://github.com/ggerganov/whisper.cpp.git RUN git clone --depth 1 https://github.com/ggerganov/whisper.cpp.git
# Build whisper.cpp (with explicit targets) # Build whisper.cpp properly
RUN cd whisper.cpp && \ RUN cd whisper.cpp && \
make main make
# Verify the binary was built # Verify the binary was built
RUN ls -lh /app/whisper.cpp/main RUN ls -lh /app/whisper.cpp/main