1
0
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:
Kyle Spearrin
2017-08-15 12:03:55 -04:00
parent a9b9094b9c
commit 71c4954ca8
13 changed files with 109 additions and 5 deletions

14
util/Server/build.sh Normal file
View 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/.