script fixes

This commit is contained in:
Kyle Spearrin 2017-08-19 22:36:09 -04:00
parent f93c5cb9a1
commit 671e9ccb1c
1 changed files with 9 additions and 6 deletions

View File

@ -1,16 +1,19 @@
#!/usr/bin/env bash
set -e
DIR="$(dirname $(readlink -f $0))"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo -e "\n# Building Web"
echo ""
echo "# Building Web"
echo -e "\nBuilding app"
echo -e "npm version $(npm --version)"
echo -e "gulp version $(gulp --version)"
echo ""
echo "Building app"
echo "npm version $(npm --version)"
echo "gulp version $(gulp --version)"
npm install
gulp dist:selfHosted
echo -e "\nBuilding docker image"
echo ""
echo "Building docker image"
docker --version
docker build -t bitwarden/web $DIR/.