Skip to content

Commit 9e53038

Browse files
committed
Add ffmpeg
1 parent 87a494a commit 9e53038

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.git
22
.github
3+
.venv

Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
FROM python:3.10-slim AS base
22

3-
# COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
43
COPY --from=ghcr.io/astral-sh/uv:0.8.11 /uv /uvx /bin/
54

65
RUN apt-get update && apt-get install -y --no-install-recommends \
7-
tini ca-certificates \
6+
tini curl ca-certificates xz-utils \
87
&& rm -rf /var/lib/apt/lists/*
98

9+
ARG FFMPEG_URL=https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n7.1-latest-linux64-gpl-7.1.tar.xz
10+
11+
RUN set -eux; \
12+
curl -L "$FFMPEG_URL" -o /tmp/ffmpeg.tar.xz; \
13+
mkdir -p /tmp/ffmpeg; \
14+
tar -xJf /tmp/ffmpeg.tar.xz -C /tmp/ffmpeg --strip-components=1; \
15+
cp /tmp/ffmpeg/bin/ffmpeg /usr/local/bin/ffmpeg; \
16+
cp /tmp/ffmpeg/bin/ffprobe /usr/local/bin/ffprobe; \
17+
rm -rf /tmp/ffmpeg /tmp/ffmpeg.tar.xz
18+
1019
WORKDIR /app
1120

1221
COPY pyproject.toml uv.lock* ./

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dependencies = [
88
"cached-path",
99
"f5-tts",
1010
"langdetect>=1.0.9",
11+
"numpy>=1.26.4",
1112
"phonemizer>=3.3.0",
1213
"pythainlp>=5.1.2",
1314
"python-crfsuite>=0.9.11",
@@ -16,6 +17,7 @@ dependencies = [
1617
"tltk>=1.9.1",
1718
"torch>=2.8.0",
1819
"torchaudio",
20+
"tqdm>=4.67.1",
1921
"transformers>=4.55.2",
2022
"uvloop>=0.21.0",
2123
"wyoming>=1.7.2",

uv.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)