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
725 B

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