1
0
mirror of https://github.com/jakeswenson/BitBetter.git synced 2023-10-10 13:36:57 +02:00
BitBetter/build.sh

25 lines
580 B
Bash
Raw Normal View History

2017-10-22 19:08:50 +02:00
#!/bin/bash
# If there aren't any keys, generate them first.
[ -e ./.keys/cert.cert ] || ./.keys/generate-keys.sh
[ -e ./src/bitBetter/api/.keys ] || mkdir ./src/bitBetter/api/.keys
[ -e ./src/bitBetter/identity/.keys ] || mkdir ./src/bitBetter/identity/.keys
2017-10-29 17:57:49 +01:00
cp .keys/cert.cert ./src/bitBetter/api/.keys
cp .keys/cert.cert ./src/bitBetter/identity/.keys
2017-10-29 17:57:49 +01:00
2017-10-29 20:19:20 +01:00
cd ./src/bitBetter
2017-10-29 17:57:49 +01:00
2017-10-22 19:08:50 +02:00
dotnet restore
dotnet publish
2017-10-29 17:57:49 +01:00
cp -r bin/ api/
cp -r bin/ identity/
cd ./api
2017-10-29 20:13:38 +01:00
docker build --pull . -t bitbetter/api # --squash
2017-10-29 17:57:49 +01:00
cd ../identity
docker build --pull . -t bitbetter/identity # --squash