From cdea5e8732c67513224bc3ba9f4e77b71c5a8fd8 Mon Sep 17 00:00:00 2001 From: nanxun Date: Fri, 3 Jul 2026 18:11:52 +0800 Subject: [PATCH] fix: switch docker-compose from local build to pre-built Harbor images API and nginx services now pull from reg.nxsir.cn/live_recorder instead of building locally. The 'build' sections referenced the old Dockerfiles with WSL-specific binfmt/proxy workarounds; the CI pipeline in Jenkinsfile now handles multi-arch builds and pushes. Uses patchable REGISTRY_URL env var (defaults to reg.nxsir.cn). Co-Authored-By: Claude Opus 4.8 (1M context) --- docker-compose.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7f21bf5..c234eb2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,13 +16,7 @@ services: start_period: 10s api: - build: - context: . - dockerfile: src/LiveRecorder.WebApi/Dockerfile - network: host - args: - DOTNET_SDK_IMAGE: ${DOTNET_SDK_IMAGE:-mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim} - DOTNET_RUNTIME_IMAGE: ${DOTNET_RUNTIME_IMAGE:-mcr.microsoft.com/dotnet/aspnet:8.0-bookworm-slim} + image: ${REGISTRY_URL:-reg.nxsir.cn}/live_recorder/app-api:latest restart: unless-stopped depends_on: postgres: @@ -38,14 +32,7 @@ services: - "8080" nginx: - build: - context: ./frontend - dockerfile: Dockerfile - network: host - args: - NODE_IMAGE: ${NODE_IMAGE:-node:22-alpine} - NGINX_IMAGE: ${NGINX_IMAGE:-nginx:1.27-alpine} - VITE_API_BASE_URL: /api + image: ${REGISTRY_URL:-reg.nxsir.cn}/live_recorder/app-web:latest restart: unless-stopped depends_on: - api