Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

chore: reduce image size

PairZhu054d591fda89
diff --git a/Dockerfile b/Dockerfile
index ffc2c1f1..4a05a32b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,23 +2,28 @@ FROM alpine:latest as builder
# 安装基础工具并创建目录
WORKDIR /build
-RUN apk add --no-cache wget unzip && \
- mkdir -p bin
-
-# 下载并安装所有依赖
-RUN wget -O bin/ffmpeg.zip https://modelscope.cn/models/Maranello/KrillinAI_dependency_cn/resolve/master/ffmpeg-6.1-linux-64.zip && \
- unzip bin/ffmpeg.zip -d bin && \
- rm bin/ffmpeg.zip && \
- chmod +x bin/ffmpeg && \
- wget -O bin/ffprobe.zip https://modelscope.cn/models/Maranello/KrillinAI_dependency_cn/resolve/master/ffprobe-6.1-linux-64.zip && \
- unzip bin/ffprobe.zip -d bin && \
- rm bin/ffprobe.zip && \
- chmod +x bin/ffprobe && \
- wget -O bin/yt-dlp https://modelscope.cn/models/Maranello/KrillinAI_dependency_cn/resolve/master/yt-dlp_linux && \
+RUN apk add --no-cache wget && \
+ mkdir -p bin && \
+ ARCH=$(uname -m) && \
+ case "$ARCH" in \
+ x86_64) \
+ URL="https://github.com/yt-dlp/yt-dlp/releases/download/2025.01.15/yt-dlp_linux"; \
+ ;; \
+ armv7l) \
+ URL="https://github.com/yt-dlp/yt-dlp/releases/download/2025.01.15/yt-dlp_linux_armv7l"; \
+ ;; \
+ aarch64) \
+ URL="https://github.com/yt-dlp/yt-dlp/releases/download/2025.01.15/yt-dlp_linux_aarch64"; \
+ ;; \
+ *) \
+ echo "Unsupported architecture: $ARCH" && exit 1; \
+ ;; \
+ esac && \
+ wget -O bin/yt-dlp "$URL" && \
chmod +x bin/yt-dlp
# 最终镜像
-FROM alpine:latest
+FROM jrottenberg/ffmpeg:6.1-alpine
# 设置工作目录并复制文件
WORKDIR /app