2017-08-07 23:07:56 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
2017-08-20 04:36:09 +02:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2017-08-07 23:07:56 +02:00
|
|
|
|
2017-08-20 04:36:09 +02:00
|
|
|
echo ""
|
|
|
|
echo "# Building Web"
|
2017-08-07 23:07:56 +02:00
|
|
|
|
2017-08-20 04:36:09 +02:00
|
|
|
echo ""
|
|
|
|
echo "Building app"
|
|
|
|
echo "npm version $(npm --version)"
|
|
|
|
echo "gulp version $(gulp --version)"
|
2017-08-07 23:07:56 +02:00
|
|
|
npm install
|
2017-08-15 15:16:19 +02:00
|
|
|
gulp dist:selfHosted
|
2017-08-07 23:07:56 +02:00
|
|
|
|
2017-08-20 04:36:09 +02:00
|
|
|
echo ""
|
|
|
|
echo "Building docker image"
|
2017-08-07 23:07:56 +02:00
|
|
|
docker --version
|
|
|
|
docker build -t bitwarden/web $DIR/.
|