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

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