From e4172c11b9704e2cff1e6352147c41630b586ab6 Mon Sep 17 00:00:00 2001 From: Developer Date: Wed, 3 Dec 2025 19:34:56 -0800 Subject: [PATCH] =?UTF-8?q?fix(identity-service):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=89=80=E6=9C=89=E4=B8=AD=E5=9B=BD=E9=95=9C=E5=83=8F=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E4=BD=BF=E7=94=A8=E5=AE=98=E6=96=B9=E6=BA=90?= =?UTF-8?q?+=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 Alpine 镜像加速 - 移除 Debian 镜像加速 - 移除 npm 镜像加速 - 通过 Docker 代理访问官方源 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- backend/services/identity-service/Dockerfile | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/backend/services/identity-service/Dockerfile b/backend/services/identity-service/Dockerfile index 5875576e..02c6ce26 100644 --- a/backend/services/identity-service/Dockerfile +++ b/backend/services/identity-service/Dockerfile @@ -5,12 +5,6 @@ # Build stage - use Alpine for smaller build context FROM node:20-alpine AS builder -# Use Aliyun mirror for Alpine packages (China acceleration) -RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories - -# Use taobao npm registry (China acceleration) -RUN npm config set registry https://registry.npmmirror.com - WORKDIR /app # Copy package files @@ -41,19 +35,12 @@ FROM node:20-slim WORKDIR /app -# Use Aliyun mirror for Debian packages (China acceleration) -RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources 2>/dev/null || \ - sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list 2>/dev/null || true - # Install OpenSSL and curl for health checks RUN apt-get update && apt-get install -y --no-install-recommends \ openssl \ curl \ && rm -rf /var/lib/apt/lists/* -# Use taobao npm registry (China acceleration) -RUN npm config set registry https://registry.npmmirror.com - # Install production dependencies only COPY package*.json ./ RUN npm ci --only=production