From 832bfdd80daf2c2bb5c25a8269aacb2f269d785d Mon Sep 17 00:00:00 2001 From: repair-agent Date: Thu, 2 Apr 2026 16:44:19 +0800 Subject: [PATCH] fix: use hub.rat.dev mirror for base images Buildkit ignores daemon.json registry-mirrors, so specify mirror directly in FROM statements. Co-Authored-By: Claude Opus 4.6 (1M context) --- Dockerfile | 4 ++-- k8s-monitor/Dockerfile | 2 +- web/Dockerfile | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0c76ee9..f416b5b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # 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 @@ -8,7 +8,7 @@ COPY requirements.txt ./ RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt # Production stage -FROM python:3.12-slim AS production-stage +FROM hub.rat.dev/library/python:3.12-slim AS production-stage WORKDIR /app diff --git a/k8s-monitor/Dockerfile b/k8s-monitor/Dockerfile index 665418a..a3c8e7d 100644 --- a/k8s-monitor/Dockerfile +++ b/k8s-monitor/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.12-slim +FROM hub.rat.dev/library/python:3.12-slim WORKDIR /app diff --git a/web/Dockerfile b/web/Dockerfile index b7b25f7..6ae1f08 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -1,5 +1,5 @@ # Build stage -FROM node:20-alpine AS build-stage +FROM hub.rat.dev/library/node:20-alpine AS build-stage WORKDIR /app @@ -16,7 +16,7 @@ ENV VITE_API_BASE_URL=$VITE_API_BASE_URL RUN npm run build # 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