9b71099658
Made-with: Cursor
27 lines
792 B
PowerShell
27 lines
792 B
PowerShell
# Docker Build Script for Windows PowerShell
|
|
# Builds the Docker image for docker-registry.kolpacksoftware.com
|
|
|
|
param(
|
|
[string]$ImageName = "clue-picker",
|
|
[string]$Tag = "latest",
|
|
[string]$Registry = "docker-registry.kolpacksoftware.com"
|
|
)
|
|
|
|
$FullImageName = "${Registry}/${ImageName}:${Tag}"
|
|
|
|
Write-Host "Building Docker image: $FullImageName" -ForegroundColor Green
|
|
|
|
docker build -t $FullImageName .
|
|
|
|
if ($LASTEXITCODE -ne 0) {
|
|
Write-Host "Docker build failed!" -ForegroundColor Red
|
|
exit 1
|
|
}
|
|
|
|
Write-Host "Build successful!" -ForegroundColor Green
|
|
Write-Host ""
|
|
Write-Host "To push the image, run:" -ForegroundColor Yellow
|
|
Write-Host " docker push $FullImageName" -ForegroundColor Cyan
|
|
Write-Host ""
|
|
Write-Host "Or use the docker-push.ps1 script" -ForegroundColor Yellow
|