-
-
Notifications
You must be signed in to change notification settings - Fork 724
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite Powershell Scripts for Alternative Dockerfile
- Loading branch information
1 parent
361f212
commit f8e0c7f
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
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 | ||
docker compose build | ||
|
||
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters