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

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