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) <noreply@anthropic.com>
This commit is contained in:
2026-07-03 18:11:52 +08:00
co-authored by Claude Opus 4.8
parent 5d57dff482
commit cdea5e8732
+2 -15
View File
@@ -16,13 +16,7 @@ services:
start_period: 10s start_period: 10s
api: api:
build: image: ${REGISTRY_URL:-reg.nxsir.cn}/live_recorder/app-api:latest
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}
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
postgres: postgres:
@@ -38,14 +32,7 @@ services:
- "8080" - "8080"
nginx: nginx:
build: image: ${REGISTRY_URL:-reg.nxsir.cn}/live_recorder/app-web:latest
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
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- api - api