mirror of
https://github.com/bitwarden/server
synced 2025-12-23 19:53:40 +00:00
setup, build, and run scripts
This commit is contained in:
11
src/Api/build.ps1
Normal file
11
src/Api/build.ps1
Normal file
@@ -0,0 +1,11 @@
|
||||
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
|
||||
echo "`n# Building API"
|
||||
|
||||
echo "`nBuilding app"
|
||||
echo ".NET Core version $(dotnet --version)"
|
||||
dotnet publish $dir\Api.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish
|
||||
|
||||
echo "`nBuilding docker image"
|
||||
docker --version
|
||||
docker build -t bitwarden/api $dir\.
|
||||
Reference in New Issue
Block a user