|
|
@@ -2,7 +2,7 @@
|
|
|
FROM node:22-bookworm AS deps
|
|
|
|
|
|
# 使用阿里云镜像源
|
|
|
-# RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources
|
|
|
+RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources
|
|
|
|
|
|
RUN corepack enable && corepack prepare pnpm@10.24.0 --activate
|
|
|
|
|
|
@@ -10,7 +10,7 @@ RUN apt-get update && \
|
|
|
apt-get install -y --no-install-recommends ffmpeg python3 python3-pip && \
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
-RUN pip3 install --break-system-packages faster-whisper
|
|
|
+RUN pip3 install --break-system-packages -i https://mirrors.aliyun.com/pypi/simple/ faster-whisper
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
@@ -35,7 +35,7 @@ RUN pnpm build
|
|
|
# Stage 3: Runtime — fresh prod install with hoisted layout
|
|
|
FROM node:22-bookworm-slim AS runtime
|
|
|
|
|
|
-# RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources
|
|
|
+RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources
|
|
|
|
|
|
RUN corepack enable && corepack prepare pnpm@10.24.0 --activate
|
|
|
|
|
|
@@ -47,7 +47,7 @@ RUN apt-get update && \
|
|
|
libgbm1 libpango-1.0-0 libcairo2 libasound2 && \
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
-RUN pip3 install --break-system-packages faster-whisper
|
|
|
+RUN pip3 install --break-system-packages -i https://mirrors.aliyun.com/pypi/simple/ faster-whisper
|
|
|
|
|
|
WORKDIR /app
|
|
|
|