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/appveyor-build.ps1

22 lines
601 B

$ErrorActionPreference = 'Stop';
$files = ""
Write-Host Starting build
Write-Host Updating base images
docker pull microsoft/nanoserver
docker version
Write-Host Updating Docker engine to master
Stop-Service docker
$version = "17.05.0-ce"
$wc = New-Object net.webclient
$wc.DownloadFile("https://get.docker.com/builds/Windows/x86_64/docker-$version.zip", "$env:TEMP\docker.zip")
Expand-Archive -Path "$env:TEMP\docker.zip" -DestinationPath $env:ProgramFiles -Force
Remove-Item "$env:TEMP\docker.zip"
Start-Service docker
docker version
docker build -t whoami -f Dockerfile.windows .
docker images