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