mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
create kestrel server for serving static files
This commit is contained in:
14
util/Server/build.sh
Normal file
14
util/Server/build.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(dirname $(readlink -f $0))"
|
||||
|
||||
echo -e "\n# Building Server"
|
||||
|
||||
echo -e "\nBuilding app"
|
||||
echo -e ".NET Core version $(dotnet --version)"
|
||||
dotnet publish $DIR/Server.csproj -c "Release" -o $DIR/obj/Docker/publish
|
||||
|
||||
echo -e "\nBuilding docker image"
|
||||
docker --version
|
||||
docker build -t bitwarden/server $DIR/.
|
Reference in New Issue
Block a user