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:
+2
-15
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user