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.

fix: dockerfile use glibc image

dfine77f1fa2c6b37
diff --git a/Dockerfile b/Dockerfile
index 4a05a32b..8b07f3e8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,9 +1,19 @@
-FROM alpine:latest as builder
+FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/ubuntu:20.04
-# 安装基础工具并创建目录
-WORKDIR /build
-RUN apk add --no-cache wget && \
- mkdir -p bin && \
+WORKDIR /app
+
+RUN tee /etc/apt/sources.list <<EOF
+deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
+deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
+deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
+deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
+EOF
+
+RUN apt-get update && \
+ apt-get install -y --no-install-recommends wget ca-certificates ffmpeg && \
+ rm -rf /var/lib/apt/lists/*
+
+RUN mkdir -p bin && \
ARCH=$(uname -m) && \
case "$ARCH" in \
x86_64) \
@@ -22,26 +32,15 @@ RUN apk add --no-cache wget && \
wget -O bin/yt-dlp "$URL" && \
chmod +x bin/yt-dlp
-# 最终镜像
-FROM jrottenberg/ffmpeg:6.1-alpine
-
-# 设置工作目录并复制文件
-WORKDIR /app
-COPY --from=builder /build/bin /app/bin
COPY KrillinAI ./
-# 创建必要目录并设置权限
RUN mkdir -p /app/models && \
chmod +x ./KrillinAI
-# 声明卷
VOLUME ["/app/bin", "/app/models"]
-# 设置环境变量
ENV PATH="/app/bin:${PATH}"
-# 设置端口
EXPOSE 8888/tcp
-# 设置入口点
-ENTRYPOINT ["./KrillinAI"]
\ No newline at end of file
+ENTRYPOINT ["./KrillinAI"]