fix:修改pip镜像

This commit is contained in:
丹尼尔
2026-03-11 11:21:20 +08:00
parent 501153a081
commit c3e60f037f

View File

@@ -19,7 +19,9 @@ ENV NODE_ENV=production \
PYTHONDONTWRITEBYTECODE=1 \ PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 PYTHONUNBUFFERED=1
RUN apk add --no-cache python3 py3-pip # Alpine 使用国内镜像,加速 apk 安装(python3/py3-pip
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk add --no-cache python3 py3-pip
COPY --from=build /app/node_modules ./node_modules COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist COPY --from=build /app/dist ./dist