fix: use hub.rat.dev mirror for base images
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 14s

Buildkit ignores daemon.json registry-mirrors, so specify
mirror directly in FROM statements.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
repair-agent 2026-04-02 16:44:19 +08:00
parent eb75fa126c
commit 832bfdd80d
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
# Build stage - Python FastAPI application # Build stage - Python FastAPI application
FROM python:3.12-slim AS build-stage FROM hub.rat.dev/library/python:3.12-slim AS build-stage
WORKDIR /app WORKDIR /app
@ -8,7 +8,7 @@ COPY requirements.txt ./
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
# Production stage # Production stage
FROM python:3.12-slim AS production-stage FROM hub.rat.dev/library/python:3.12-slim AS production-stage
WORKDIR /app WORKDIR /app

View File

@ -1,4 +1,4 @@
FROM python:3.12-slim FROM hub.rat.dev/library/python:3.12-slim
WORKDIR /app WORKDIR /app

View File

@ -1,5 +1,5 @@
# Build stage # Build stage
FROM node:20-alpine AS build-stage FROM hub.rat.dev/library/node:20-alpine AS build-stage
WORKDIR /app WORKDIR /app
@ -16,7 +16,7 @@ ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
RUN npm run build RUN npm run build
# Production stage # Production stage
FROM nginx:stable-alpine AS production-stage FROM hub.rat.dev/library/nginx:stable-alpine AS production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html COPY --from=build-stage /app/dist /usr/share/nginx/html