fix: remove China mirrors, add build-essential for voice-service

Server is on HK network, no need for China mirrors. Added
build-essential for compiling native Python packages (kokoro, etc).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-19 05:11:39 -08:00
parent 9a95cdc4a9
commit c0b4f77de5
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ FROM node:18-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm config set registry https://registry.npmmirror.com && npm ci
RUN npm ci
COPY . .

View File

@ -6,10 +6,11 @@ WORKDIR /app
RUN apt-get update && apt-get install -y \
ffmpeg \
libsndfile1 \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install --no-cache-dir -r requirements.txt
COPY src/ ./src/