mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-11 18:26:50 +00:00
12 lines
406 B
PowerShell
12 lines
406 B
PowerShell
Write-Host "Docker cleaning: remove old containers" -ForegroundColor Blue
|
|
docker compose down -v --remove-orphans
|
|
Write-Host "Docker build: set up the docker containers" -ForegroundColor Blue
|
|
|
|
# Check if an argument is provided
|
|
if ($args.Count -gt 0) {
|
|
# Run the build command with the argument and log output
|
|
docker build -f $1 .
|
|
} else {
|
|
docker compose build
|
|
}
|
|
Write-Host "Docker build finished" |