mirror of
https://github.com/bitwarden/server.git
synced 2025-01-09 19:57:37 +01:00
17 lines
647 B
PowerShell
17 lines
647 B
PowerShell
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
|
|
echo "`n## Building API"
|
|
|
|
echo "`nBuilding app"
|
|
echo ".NET Core version $(dotnet --version)"
|
|
echo "Clean"
|
|
dotnet clean $dir\Api.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish\Api
|
|
dotnet clean $dir\..\Jobs\Jobs.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish\Jobs
|
|
echo "Publish"
|
|
dotnet publish $dir\Api.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish\Api
|
|
dotnet publish $dir\..\Jobs\Jobs.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish\Jobs
|
|
|
|
echo "`nBuilding docker image"
|
|
docker --version
|
|
docker build -t bitwarden/api $dir\.
|