fix build bug
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m32s

This commit is contained in:
zyc 2026-03-23 09:53:09 +08:00
parent 5783098fa2
commit 002372aa05
2 changed files with 7 additions and 3 deletions

View File

@ -6,12 +6,16 @@ ENV GUNICORN_RUNNING=1
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
# System dependencies (Aliyun mirror for China)
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources && \
apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ && \
pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
COPY . .

View File

@ -2,7 +2,7 @@ FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
RUN npm config set registry https://registry.npmmirror.com && npm ci
COPY . .
RUN npm run build