u
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user