Kennethdot commited on
Commit
3efe1cb
·
verified ·
1 Parent(s): 9383f01

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -3
Dockerfile CHANGED
@@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
4
  rm -rf /var/lib/apt/lists/*
5
  WORKDIR /build
6
  RUN git clone --depth 1 https://github.com/ggml-org/whisper.cpp .
7
- RUN cmake -B build -DCMAKE_BUILD_TYPE=Release && \
8
  cmake --build build -j --config Release --target whisper-cli
9
 
10
  FROM python:3.11-slim
@@ -13,8 +13,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
13
  WORKDIR /app
14
 
15
  COPY --from=builder /build/build/bin/whisper-cli /usr/local/bin/whisper-cli
16
- COPY --from=builder /build/build/src/libwhisper.so* /usr/local/lib/
17
- RUN ldconfig
18
 
19
  COPY requirements.txt .
20
  RUN pip install --no-cache-dir -r requirements.txt
 
4
  rm -rf /var/lib/apt/lists/*
5
  WORKDIR /build
6
  RUN git clone --depth 1 https://github.com/ggml-org/whisper.cpp .
7
+ RUN cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF && \
8
  cmake --build build -j --config Release --target whisper-cli
9
 
10
  FROM python:3.11-slim
 
13
  WORKDIR /app
14
 
15
  COPY --from=builder /build/build/bin/whisper-cli /usr/local/bin/whisper-cli
 
 
16
 
17
  COPY requirements.txt .
18
  RUN pip install --no-cache-dir -r requirements.txt