17 lines
723 B
PowerShell
17 lines
723 B
PowerShell
# Build the Docker image
|
|
Write-Host "Building Wine + .NET SDK Docker image..." -ForegroundColor Green
|
|
docker build -t wine-dotnet:latest .
|
|
|
|
if ($LASTEXITCODE -eq 0) {
|
|
Write-Host "✅ Docker image built successfully!" -ForegroundColor Green
|
|
Write-Host ""
|
|
Write-Host "To run the container:" -ForegroundColor Yellow
|
|
Write-Host "docker run -it --rm wine-dotnet:latest" -ForegroundColor Cyan
|
|
Write-Host ""
|
|
Write-Host "To run with volume mounting (for development):" -ForegroundColor Yellow
|
|
Write-Host "docker run -it --rm -v ${PWD}/projects:/home/wineuser/projects wine-dotnet:latest" -ForegroundColor Cyan
|
|
} else {
|
|
Write-Host "❌ Failed to build Docker image" -ForegroundColor Red
|
|
exit 1
|
|
}
|