Skip to content

Commit

Permalink
deps: update ctranslate2
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedir Zadniprovskyi committed Oct 31, 2024
1 parent d837657 commit 8dcbde4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 130 deletions.
6 changes: 2 additions & 4 deletions Dockerfile.cpu
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM ubuntu:24.04
LABEL org.opencontainers.image.source="https://github.com/fedirz/faster-whisper-server"
# `ffmpeg` is installed because without it `gradio` won't work with mp3(possible others as well) files
# hadolint ignore=DL3008,DL3015,DL4006
# hadolint ignore=DL3008
RUN apt-get update && \
apt-get install -y ffmpeg software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3.12 python3.12-distutils && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ffmpeg python3.12 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv
Expand Down
8 changes: 3 additions & 5 deletions Dockerfile.cuda
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu22.04
FROM nvidia/cuda:12.6.2-cudnn-runtime-ubuntu24.04
LABEL org.opencontainers.image.source="https://github.com/fedirz/faster-whisper-server"
# `ffmpeg` is installed because without it `gradio` won't work with mp3(possible others as well) files
# hadolint ignore=DL3008,DL3015,DL4006
# hadolint ignore=DL3008
RUN apt-get update && \
apt-get install -y ffmpeg software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3.12 python3.12-distutils && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ffmpeg python3.12 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
requires-python = ">=3.12,<3.13"
# https://packaging.python.org/en/latest/specifications/version-specifiers/#id5
dependencies = [
"ctranslate2>=4.5.0",
"fastapi>=0.115.0",
"faster-whisper>=1.0.3",
"huggingface-hub>=0.25.1",
Expand Down
Loading

0 comments on commit 8dcbde4

Please sign in to comment.