You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docker-whoami/build.ps1

13 lines
278 B

$ErrorActionPreference = 'Stop';
$files = ""
Write-Host Starting build
if ($isWindows) {
docker build --pull -t whoami -f Dockerfile.windows .
} else {
docker pull golang
docker build --platform "linux/$env:ARCH" -t whoami --build-arg "arch=$env:ARCH" .
}
docker images