f0a5af595d
- Fix indicator parameter values being reset after modification in indicator-analysis page - Fix Docker build nginx image pull failure (use specific version tag) - Add Docker build scripts (PowerShell and Bash versions) - Revert call_indicator feature (temporarily removed to avoid affecting existing indicator execution)
28 lines
775 B
PowerShell
28 lines
775 B
PowerShell
# PowerShell script for building Docker image with registry fallback
|
|
|
|
Write-Host "Building frontend Docker image..." -ForegroundColor Green
|
|
|
|
# Try to build with --pull flag to force pull from official registry
|
|
$buildResult = docker build `
|
|
--pull `
|
|
--platform linux/amd64 `
|
|
-t quantdinger-frontend:latest `
|
|
-f Dockerfile `
|
|
.
|
|
|
|
if ($LASTEXITCODE -ne 0) {
|
|
Write-Host "Build failed, trying with no-cache..." -ForegroundColor Yellow
|
|
docker build `
|
|
--no-cache `
|
|
--platform linux/amd64 `
|
|
-t quantdinger-frontend:latest `
|
|
-f Dockerfile `
|
|
.
|
|
}
|
|
|
|
if ($LASTEXITCODE -eq 0) {
|
|
Write-Host "Build successful!" -ForegroundColor Green
|
|
} else {
|
|
Write-Host "Build failed. Please check Docker registry configuration." -ForegroundColor Red
|
|
}
|