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.

15 lines
796 B

  1. $scriptPath = Split-Path $script:MyInvocation.MyCommand.Path
  2. Write-Host "Current script directory is $scriptPath" -ForegroundColor Yellow
  3. # *** identitySvc image ***
  4. $identitySvcPathToJson = $scriptPath + "\src\Services\Identity\eShopOnContainers.Identity\project.json"
  5. Write-Host "identitySvcPathToJson is $identitySvcPathToJson" -ForegroundColor Yellow
  6. $identitySvcPathToPub = $scriptPath + "\pub\identity"
  7. Write-Host "identitySvcPathToPub is $identitySvcPathToPub" -ForegroundColor Yellow
  8. Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue
  9. dotnet restore $identitySvcPathToJson
  10. dotnet build $identitySvcPathToJson
  11. dotnet publish $identitySvcPathToJson -o $identitySvcPathToPub
  12. docker build -t eshop/identity $identitySvcPathToPub