mirror of
https://github.com/bitwarden/server
synced 2025-12-06 00:03:34 +00:00
16 lines
469 B
Bash
Executable File
16 lines
469 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
echo -e "\n# Building API"
|
|
|
|
echo -e "\nBuilding app"
|
|
echo -e ".NET Core version $(dotnet --version)"
|
|
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 -e "\nBuilding docker image"
|
|
docker --version
|
|
docker build -t bitwarden/api $DIR/.
|