fix: disable buildkit to use host Docker daemon and mirror cache
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 58s

Buildkit runs in isolated network and can't access mirrors.
Legacy builder uses host daemon directly with registry-mirrors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
repair-agent 2026-04-02 16:46:41 +08:00
parent 832bfdd80d
commit 0fdc62b99e
4 changed files with 8 additions and 8 deletions

View File

@ -37,7 +37,7 @@ jobs:
id: build-api
run: |
set -o pipefail
docker build \
DOCKER_BUILDKIT=0 docker build \
--tag ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/log-center-api:latest \
-f ./Dockerfile \
. 2>&1 | tee /tmp/build-api.log
@ -48,7 +48,7 @@ jobs:
id: build-web
run: |
set -o pipefail
docker build \
DOCKER_BUILDKIT=0 docker build \
--build-arg VITE_API_BASE_URL=https://${{ env.DOMAIN_API }} \
--tag ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/log-center-web:latest \
-f ./web/Dockerfile \
@ -60,7 +60,7 @@ jobs:
id: build-monitor
run: |
set -o pipefail
docker build \
DOCKER_BUILDKIT=0 docker build \
--tag ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/k8s-pod-monitor:latest \
-f ./k8s-monitor/Dockerfile \
./k8s-monitor 2>&1 | tee /tmp/build-monitor.log

View File

@ -1,5 +1,5 @@
# Build stage - Python FastAPI application
FROM hub.rat.dev/library/python:3.12-slim AS build-stage
FROM 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 hub.rat.dev/library/python:3.12-slim AS production-stage
FROM python:3.12-slim AS production-stage
WORKDIR /app

View File

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

View File

@ -1,5 +1,5 @@
# Build stage
FROM hub.rat.dev/library/node:20-alpine AS build-stage
FROM 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 hub.rat.dev/library/nginx:stable-alpine AS production-stage
FROM nginx:stable-alpine AS production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html